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.
How to redirect all mobile users to the service portal - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to redirect all mobile users to the service portal
KB0830906

How to redirect all mobile users to the service portal


1825 Views Last updated : Jan 2, 2025 public Copy Permalink
KB Summary by Now Assist

Summary

This article describes steps you can take to redirect all mobile users to the service portal, regardless of their roles. Please note that this does not apply to the mobile applications. This is useful only for mobile web browsers.

Release

Mobile web browsers

Instructions

  1. In the filter navigator, type: sys_properties.list and press Enter
  2. Find the property: glide.entry.page.script and set the value to: new SPEntryPage().getLoginURL(), save your changes
  3. Go back to the sys_properties list, if the property glide.entry.first.page.script does not exist, click the New button create a new property. Otherwise skip to step 5.
  4. For the property name, enter: glide.entry.first.page.script
  5. For the value, enter: new SPEntryPage().getFirstPageURL() and save the record 
  6. Navigate to System Definition > Script Includes and open the SPEntryPage record
  7. In the script section, find the line that begins: if (user.hasRoles() && !redirectURL && !isServicePortalURL)
  8. Edit this line to: if (user.hasRoles() && !redirectURL && !isServicePortalURL && !gs.isMobile())
  9. Next, find the line: if (!redirectURL) {
  10. Edit this line to: if (!redirectURL && !gs.isMobile()) {
  11. Save the record

The image below shows the property settings

property settings

The following image highlights the script changes in SPEntryPage

script changes

Related Links

Users will now be redirected to the service portal when accessing the instance from a mobile web browser, regardless of their roles. Please note that applying these changes will always bring users to the service portal login page. 


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.