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 or Environment

Mobile web browsers


  1. In the filter navigator, type: sys_properties.list and press Enter
  2. Find the property: and set the value to: new SPEntryPage().getLoginURL(), save your changes
  3. Go back to the sys_properties list, if the property does not exist, click the New button create a new property. Otherwise skip to step 5.
  4. For the property name, enter:
  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

Additional Information

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. 

Article Information

Last Updated:2020-07-01 09:17:21