Prevent Manual Redirectoion from Employee Center To Platform
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago - last edited 2 weeks ago
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:
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!
Shashank Jain