The Now Platform® Washington DC release is live. Watch now!
‎07-03-2017 04:49 AM
Hi: Can someone please advise how to redirect a portal homepage to another portal homepage. So basically I want users who visit xx.service-now.com/tech to be automatically redirected to xx.service-now.com/sp. What is the best way to do so? Thank you in advance.
Solved! Go to Solution.
‎07-03-2017 05:08 AM
In left navigation go to sites and click on your homepage.
Once you have your homepage go to layout and modify the code.
Required code is highlighted. Let me know if you have any queries.
Thanks,
Abhishek
‎07-03-2017 04:57 AM
Hi Rita ,
If you are using Cms(content management system) then you can use "window.location.replace("xx.service-now.com/sp");" in your layout used macro . it will redirect to the location you want.
CODE IN XML :
<script>
window.location.replace("xx.service-now.com/sp");
</script>
Thanks,
Abhishek
‎07-03-2017 05:02 AM
Hi Abhishek: Where would I go to update the layout used macro? Thank you.
‎07-03-2017 05:08 AM
‎07-03-2017 05:36 AM
Hi Abhishek: I just had to tweak it as follows to allow going to /tech for notification links:
<script>
if(document.URL.indexOf('incident.do') == -1)
window.location = '/sp/';
</script>
Thank you so very much!! I've been spinning my wheels for 24 hrs on this..