Prevent Manual Redirectoion from Employee Center To Platform

RajatG
Tera Expert

When a user manually removes the '/esc' from the URL and loads it , it should automatically redirect it back to the employee center portal 

How can I achieve this.

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @RajatG 

That is not the expected behavior. The reason is that ServiceNow works on URLs, and if you remove the suffix, it takes the instance.Servicenow.com URL, which defaults to the Native view. I doubt we can change this as it is platform behavior.”

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Mark Manders
Mega Patron

It really depends on your use case.  You can use settings within something like the SSO script include to prevent end users from entering any other page than a portal page, but your question doesn't mention those kinds of details. I would never have ITIL users redirected to the portal, for instance. Please elaborate on your question, because how you have formulated it, it doesn't really make sense.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Ankur Bawiskar
Tera Patron
Tera Patron

@RajatG 

you can use UI script for this and handle the logic

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Shashank_Jain
Kilo Sage

Hii @RajatG ,

 

You can try this way instead of UI script -

 

There is a property to handle this. To redirect users without any roles. But you need to create it yourself.

So go into the table sys_properties. Press the"new" button and make the record that looks like this:

Screenshot (35).png

 

So the name of the property is "glide.entry.loggedin.page_ess" and the value should be the suffix for your portal.

 

So now if a user without role would go to instancename.service-now.com it will get redirected automagically to "instancename.service-now.com/esc"

 

Hope it helps!

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain