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.
Homepages are redirecting to Service Portal or a different page instead of home.do - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Homepages are redirecting to Service Portal or a different page instead of home.do
KB0747581

Homepages are redirecting to Service Portal or a different page instead of home.do


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

Issue

Symptoms

When viewing a home page from the dashboard, it keeps redirecting to another page, for example Service Portal. 

Steps to reproduce: 

1. Navigate to Homepage Admin >> Pages
2. Select Portal Page under the Class or Type field. Do not need to add any dropzone to see the issue. 
3. Save the page.
4. Click on View Homepage under Related Links.
The home.do page will not be displayed. Instead of that, it will redirect to another page, for example /sp.

 

Release

All current supported versions.

Cause

The home page is using a Layout that is redirecting to the other page. 

Resolution

Follow the steps below to fix the issue:
1. Edit the homepage
2. Modify the Form Layout and add the Layout field to the form
3. Get the name of the layout assigned to the page
4. Go to Homepage Admin >> Layouts
5. Edit the layout and review the XML field. Below an example of the code that could
be doing the redirect to Service Portal (/sp):

<script>
if(document.URL.indexOf('incident.do') == -1)
window.location = '/sp/';
</script>

So, remove or modify the script tag. Or, remove the layout from the home 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.