Focal Point
[CLOSED]absolute urls in a launch page

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4567028286

June 20, 2016, 10:24 AM
susannah
[CLOSED]absolute urls in a launch page
our corp portal won't run wf launch pages b/c the run buttons are relative urls, its seems
adding a base tag didn't work
here's the base tag I added
<BASE href=http://wefwcdcpvm004.nyumc.org:80> 

here's a sample request id
<request requestid="15" sourcetype="typeHtml" targettype="frame" targetname="wsc_ad_frame" ibif_ex="weekly_scorecard_fs.htm" 
ibic_server="EDASERVE" activereport="0" reportcolumns="" ibiapp_app="sc_weekly_app">
</request>

any ideas how I can edit a launch page to make it actually work from inside a very greedy portal?

This message has been edited. Last edited by: <Emily McAllister>,




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 20, 2016, 01:57 PM
CoolGuy
Susannah,

So, what version are you on? Also, let me break this down to see if I'm understanding you...You've got a portal, that you are trying to run your own launch pages from. You stuck them in via portal designer via 1 column layout and by inserting them within a responsive panel if in 8.1, right? Or are you working in 7.x?


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
June 20, 2016, 03:32 PM
susannah
77..says in my signature line.
portal isn't mine, its the organization's.
a run button in a launch page is a relative url. using a base tag to make it an abs url doesn't seem to work
[would have helped if I had put code tags around my opening post... in a coma today]




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 21, 2016, 01:35 PM
Francis Mariani
susannah, you added the BASE tag via the text editor? maybe it needs quotes (or double-quotes) and maybe an ending slash and maybe will work without the 80...

<BASE href="http://wefwcdcpvm004.nyumc.org:80/"> 

<BASE href='http://wefwcdcpvm004.nyumc.org/'> 



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 21, 2016, 01:47 PM
Francis Mariani
Though, I do wonder if this will work because of all the proprietary IBI code...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 21, 2016, 01:57 PM
Francis Mariani
OK, in WebFOCUS 8.0.08 it does work.

This is the BASE tag - it must be within the HEAD tag:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD>
<BASE href="http://reportingTest.myCompany.ca/ibi_apps/">
...
</HEAD>
<BODY ...

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 21, 2016, 02:12 PM
CoolGuy
I didn't know about the BASE tag. That's pretty cool. Sorry, I heard portal and thought 8.x. I'm not too familiar with the old 7.x stuff. Worked with it for like a month and we switched over to 8.0.09. We actually ended up having to rewrite/rework all the HTML from our old 7.x environment so far in our new one, due to things just not working anymore sadly enough.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
June 23, 2016, 04:41 PM
susannah
thanks Francesco
yep I tried variations on the coolguy, when you first write a launch page in devstu, you'll see the base tag in the code but it vanishes after you actually save it.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 24, 2016, 04:07 AM
Wep5622
quote:
Originally posted by susannah:
our corp portal won't run wf launch pages b/c the run buttons are relative urls


Relative to what exactly? Relative in what way? An example URL might help.

If your URL's start with a slash (/) they should work and that's usually what you want, unless you managed to have your static files (HTML, JS, CSS, images) on a different host somehow?

Relative and absolute URL's are a confusing topic, because the same notion can mean different things:
http://my.domain/x.html is an absolute URL
/x.html is also an absolute URL within the domain (should we call that "domain absolute"?)
x.html is a relative URL


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
June 24, 2016, 08:21 AM
Squatch
quote:
Originally posted by Wep5622:
/x.html is also an absolute URL within the domain (should we call that "domain absolute"?)

I have always thought of the leading slash as "the path and file on this server. I never thought to give it a name, but it is an absolute path on the local server.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs