cancel
Showing results for 
Search instead for 
Did you mean: 

Open portal page in same window / tab

Noel_Hendrikx
Active Contributor
0 Kudos

Dear all,

We have an intranet with direct links - quicklinks - to our SAP portal system. All links should be opened in the same window / tab, so we have defined the links to be opened in a named window (HTML a target Attribute).


<a href="https://ourportalsystem/irj/portal/quicklink1" target="sapportal">Quicklink one</a>

<a href="https://ourportalsystem/irj/portal/quicklink2" target="sapportal">Quicklink two</a>

Both links should be opened in the same window name called sapportal, but I get several new windows. If I replace the sapportal links to let's say 2 random internet sites, everything goes ok.

What is causing this behaviour? I can't see the reason why it is opening new windows all the time.

Cheers,

Noël

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Interesting case.

In Firebug I see that portal is changing window name in the DOM model to "logonAppPage"

Try using this name as a target attribute : )

///Edit

After logging  to portal window name parameter is set to random value in format WID<some_nmbers>.

So unfortunately my previous trick is no longer valid : (

Noel_Hendrikx
Active Contributor
0 Kudos

Artur,

I will check with Chrome as well what happens to the window name. The strange thing is that this solution worked for Portal 7.0. In Portal 7.3 it behaves quite different unfortunately.

Maybe some EPCF settings?

Cheers,

Noël

Former Member
0 Kudos

Hi,

Yes - this is an EPCF feature, as per this link

System and Environment - Portal - SAP Library

The EPCF assigns a unique identifier to any browser window.

I even did a quick test to see how window name behaves after opening portal

com.sap.portal.epcf.loader turned off

com.sap.portal.epcf.loader turned on

Former Member
0 Kudos

With target="WID" it seems to work.

Noel_Hendrikx
Active Contributor
0 Kudos

Nice work both!

If I use target="WID" the links are opened in the same window. How did you find out?

Thanks!

Former Member
0 Kudos

I just tried it out .

Since the reason for it not to work is that there is no existing browsing context by that name (sapportal). In previous releases the window name would get the name of the browsing context but since then SAP changed it to be WIDXXX. Without knowing exactly how the browsing context and the window name are compared, this might be something that will break eventually but I guess you can use it for now.

Answers (1)

Answers (1)

Former Member
0 Kudos

What browser including version are you using? I doubt that has anything to do with the portal since the decision how to display content is taken by the browser. Does it happen if you use HTTP instead of HTTPS? Does your portal hostname have a FQDN meaning it also has a valid domain? See the W3C document on how browsers are supposed to behave.

Noel_Hendrikx
Active Contributor
0 Kudos

I have tried it in IE9 and Chrome (latest version). For both protocols it happens (http and https), also FQDN is fine and valid domains.