How can i redirect UI page rather than going to nav_to.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 11:12 AM
Hi All,
I have a UI page.
https://instance.service-now.com/test.do when i am trying to do access this URL for the first time , system is opening this page in side the https://instance.service-now.com/nav_to.do?uri=/test.do
Instead i would like to redirect the user to this page https://instance.service-now.com/test.do
how is it possible to redirect this page ? and also we are using SSO to authenticate .
Any help is appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 04:50 PM
Hi Sam,
In the past I have added a CMS site path to avoid the nav_to.do page being called with the sso. For example:
https://instance.service-now.com/ess/test.do
Not sure if the site has to exists or if it could be simply, like /abc/, in our case using the CMS site path was not an issue.
You could also have a client script on you page that looks if the path contains the CMS site and then redirect to https://instance.service-now.com/test.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2016 06:40 PM
Hi Laurent,
I have created a site and add a page to it , and in the page i have created a content block where i have written code to redirect to ui page but still it is navigating to nav_to.do. and opening the page inside the nav_to.do page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2016 06:54 PM
Hi Sam,
You don't need to write any redirection script all your UI pages are available inside a CMS site.
I don't have access to our SSO right now to look at our config, but I'll try to take a look at it tomorrow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2016 06:55 PM
Also the thing I forgot to mention is that you should set your CMS to private:
Content Management Security - ServiceNow Wiki
See point 4.