Notifications

31 views

Description

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.

 

 

Article Information

Last Updated:2019-08-02 20:45:16
Published:2019-04-25