"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

Hello Stephen,



I don't think you will be able to redirect to custom page based on this text. However, I think you should be able to change the text "The page..." based on messages table.


I opted to change the phrase letting the user know where to go. After looking for awhile I could not find it in the the "Messages" table


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


sla
Mega Contributor

That will do thanks