"The page you are looking for could not be found." redirect to homepage

sla
Mega Contributor

We are trying to avoid showing any invalid pages that show the message "The page you are looking for could not be found." .   we would prefer to have the user redirected to our ServicePortal homepage than see these messages especially if the user has no roles associated to them or is not an admin.  

Since the page does not exist I just cant run scripts to redirect them.   Is there a property I can set to do this?

Thanks

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Stephen,



Thanks for the update. Please follow the below steps



1.Navigate to message table and create *NEW* record with key The page you are looking for could not be found. (copy the bolded one as is) and change the message text to the value you want. Please refer the screenshot attached for reference.


Screen Shot 2017-06-07 at 9.29.01 PM.png


Before message update :


Screen Shot 2017-06-07 at 9.31.02 PM.png



After message update:


Screen Shot 2017-06-07 at 9.31.07 PM.png


View solution in original post

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

You are very welcome Stephen. Thanks for participating in the community!


Francesco Dotti
Tera Contributor

Hello

my best advice is to check the value of this property:

glide.login.home 

Probably, the value of this property will the URL of the page that does not exist.

Then, you can change this value to:

home_splash.do?sysparm_direct=false

The logged user will be now redirected to the homepage.

 

Please, if you agree, mark this answer as helpful.