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.
Service Portal :Anchor with href to navpage/homepage redirect sthe end user again to Service Portal when glide.entry.first.page.script is set - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Service Portal :Anchor with href to navpage/homepage redirect sthe end user again to Service Portal when glide.entry.first.page.script is set
KB0678028

Service Portal :Anchor with href to navpage/homepage redirect sthe end user again to Service Portal when glide.entry.first.page.script is set


1243 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

[Service Portal] Anchor with href to navpage/homepage will redirect the end user again to Service Portal while the property glide.entry.first.page.script is set.

Steps to Reproduce

  1. Set the property glide.entry.first.page.script to the new SPEntryPage().getFirstPageURL(); to redirect the end user to Service Portal.

  2. Go to sp_header_footer_list.do or navigate to Service Portal > Headers & Footers'.

  3. Open the Stocke Header.

  4. Insert the following code:

    <li><a href="/navpage.do">Navpage</a></li>"
    just after:
    <li><a ng-href="?id=user_profile&sys_id={{::user.sys_id}}" role="menuitem">${Profile}</a></li>

  5. Save the record.

  6. Impersonate an end user as Abel Tuter.

    The user will be redirected to Service Portal.

  7. Click on Abel Tuter in the header and then on Navpage/.

    The user should be redirected to navpage.do but the method getFirstPageURL of the SPEntryPage script include is called and the user is redirected to Service Portal.

 

Workaround

There is no simple workaround for this issue without losing functionality of deciding where to redirect users upon login. However, the SPEntryPage script is highly customizable so you can modify it.


Related Problem: PRB1245608

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.