gs.getSession().getProperty("nav_to") return $sp while another portal is set as default

mpo
Giga Contributor

Hi,

I am having an issue where in some scenarios, end users are redirected to the OOTB /sp Service Portal while the default Service Portal is another one.

I have identified that the issue comes from the SPEntryPage Script Include where the following:

var session = gs.getSession();
var nt = session.getProperty("nav_to");

Leads to

nt = "$sp.do?";

More details:

This is happening when an end user tries to open the old "/ess" CMS while being logged out.
A link in then proposed to the user so they can open the new portal. But since the user is not connected, they have to enter credentials first. The system then identify them as end users with no role and redirects to "/$sp.do?".

This is not happening when a user logs in normally (meaning they didn't try to open /ess first).

Thank you,

Maxime

1 ACCEPTED SOLUTION

mpo
Giga Contributor

The issue was that "Ignore cache" had been unchecked in the "glide.entry.first.page.script" sys_property.

View solution in original post

5 REPLIES 5

mpo
Giga Contributor

Hi dvp, thank you for your answer.

I forgot about this system property and creating it fixed the issue defined in the related post: If the user insist in trying to open the back end, they can. with this property (glide.entry.loggedin.page_ess) in addition to "glide.entry.first.page.script" this is not happening anymore.

This is however not fixing the initial issue i am describing.

 

Vinay Mishra3
Mega Guru

Hi MPO,

 

In SPEntryPage script include in line no. 22 just replace 'sp' with your portal suffix. Suppose your portal suffix is 'cc' use this.portal = /cc/;.

 

find_real_file.png

 

Please mark the answer correct/helpful if it's applicable. Thanks!

Hello,

Thank you for your answer. We already have the SPEntryPage script include correctly configured.

The "session.getProperty("nav_to");" function doesn't retrieve the portal prefix from the current class instance.

Kind regards,

Max