Direct user to workspace on login, then stop redirect

Jasmine Haywood
Kilo Expert

I have a need to have users directed to a configurable workspace as soon as they login. I used the SPEntryPage() script include to do that. However, once you are on the workspace (if you don't have admin or itil), then it doesn't let you navigate away from the workspace so they are unable to access the back-end of ServiceNow. It keeps you redirected to the workspace (just like it does with the Service Portal). Does anyone know of a way to direct a user to a specific page upon login, but let them navigate to the back-end afterwards? Or another way to put it, can you break the redirect from happening after a user is pushed to a certain landing page upon login? I have tried using session.Clearproperty("login_redirect"); after the redirect url, but it doesn't seem to affect anything. I am on a San Diego instance and am using a configurable workspace created in a custom app.

3 REPLIES 3

zrebak
Mega Guru

Hello Jasmine,

 

Have you considered moving to Next UI (Polaris)?

 

This provides a workaround of sort for you, as due to differentially implemented render engine it is impossible not to see the full application navigator when logging into Workspaces in that UI (which my customer actually hates, they wanted itil resolvers not to navigate away from Agent Workspace).

 

Hope it helps

z.

Jay Shah3
Mega Guru

Facing same issue, looking for solution

Clarkie1
Giga Expert

Without seeing the code, it is difficult to say but I expect that it is hitting the same condition when trying to go to a different page and redirecting back to the workspace (similar to non-itil users being redirected back to /esc or whatever the default portal is).

 

Would using the sys_homepage_destination_rule table work better for you?