To conditionally redirect a user to Service Portal after login, setting the system property = "new SPEntryPage().getFirstPageURL()" works for a user with no roles. However, once redirected to Service Portal, if the url suffix is removed, the user gets stuck on a page unless the Service Portal url suffix is manually added.

Steps to Reproduce


  1. Create a system property with the following values:
    • Name:
    • Value: new SPEntryPage().getFirstPageURL()

    For more information, see the product documentation topic Add a property.

  2. Log into https://<>

  3. Impersonate a user.

    The browser redirects to https://<instance>

  4. Remove the "sp" from the URL and press Enter.

    Instead of redirecting to https://<instance>, the browser redirects to https://<instance>


Import the attached script include sys_script_include_3647c37253221200b0b0547cedc587fd. The following snippet is the script that will replace lines 81 to 85 in SPEntryPage (Script Include):

var ep = gs.getProperty("glide.login.home");
if (nt) {
if (ep == nt)
nt = null;
// PRB726860: if page is still, go to glide.login.home preserving frameset
if (nt == "") {
session.putProperty("nav_to", ep);

Related Problem: PRB726860

Seen In

Helsinki Patch 1
Helsinki Patch 4

Fixed In

Istanbul Patch 8

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:34:39