How can i redirect UI page rather than going to nav_to.do

sam1212
Mega Expert

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

12 REPLIES 12

LaurentChicoine
Tera Guru

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


sam1212
Mega Expert

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.


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.


Also the thing I forgot to mention is that you should set your CMS to private:



Content Management Security - ServiceNow Wiki



See point 4.