- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 03:49 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 03:41 PM
The issue was that "Ignore cache" had been unchecked in the "glide.entry.first.page.script" sys_property.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 04:58 PM
This link might be helpful
https://community.servicenow.com/community?id=community_blog&sys_id=53bc6e25dbd0dbc01dcaf3231f9619b2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2019 07:08 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2019 03:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2019 04:35 PM
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