Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Redirection with Service Portal | Frequently asked questions - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Redirection with Service Portal | Frequently asked questions
KB0747432

Redirection with Service Portal | Frequently asked questions


13336 Views Last updated : Jan 24, 2024 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

Note: For the latest product documentation on portal redirection, see Single sign-on, logins, and URL redirects.

This article outlines some of the common questions you may have about redirection with Service Portal and provides helpful information and resources to answer them.

Frequently asked questions

Q: I configured spEntryPage to send non-roled users to my service portal but they are still able to access the platform UI. What did I do wrong?
A: This is expected behavior. SPEntryPage will not make it impossible for a user to access UI16, it only ensures that by default they will reach the portal instead.

Q: When a user tries to navigate to a portal other than the default portal before logging in, they are redirected to the default portal after login. Why?
A: This is just a limitation in the product. The design of the SPEntryPage logic does not account for multiple portal login scenarios.

Q: After logging in and being properly redirected, users are able to access UI16 by opening a new tab and going to https://instancename.service-now.com or by opening ServiceNow from the chicklet in Okta. How do I prevent this?
A: This is expected behavior. The SPEntryPage script is currently only evaluated after a login operation is completed. If you need to restrict users from accessing the platform interface entirely please see the examples given in KB0687717.

Q: When opening a record link from an email, users are redirected to the platform interface after login. How can we send them to the service portal instead?
A: If you are using SSO make sure that the relay state is being properly preserved by the IDP. If not, then double-check that redirection is configured properly as described in KB0746730.

Q: When a user logs out and then logs in again through the portal, they are redirected to the platform UI rather than the portal.
A: When you log in to ServiceNow, the platform tries its best to redirect you to the page you were trying to visit before logging in. In some cases, this leads to unexpected results. When you log out, the last page you request is typically logout.do and because of that, the system will redirect you to the platform since logout.do is not a service portal URL.

Q: How do I debug redirection in Service Portal?
A: To view debug output from SPEntryPage and see the session variables it redirects based on:

  • Make sure the system property glide.entry.first.page.script has the value new SPEntryPage().getFirstPageURL().
  • Open the SPEntryPage script include and find and set this.logVariables to true.
  • In a different browser (or "incognito" or "inPrivate" session), login.

Q: Where can I view the output log?
A: The log output can be viewed by navigating to System Logs > System Log > All or by going directly to:
/syslog_list.do?sysparm_query=level%3D0%5EORDERBYDESCsys_created_on&sysparm_first_row=1&sysparm_view=


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.