Domain Separated Instance – glide.entry.first.page.script not routing correctly in Zurich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi All,
We are working on a domain-separated ServiceNow Zurich instance and facing an issue with login landing page routing using the system property glide.entry.first.page.script.
Requirement
Backend/Support users (users with roles like ITIL/Admin) should land on Platform UI (classic / navpage).
End users should land on Employee Center.
Users belonging to a specific domain (Company) should land on a dedicated Service Portal (/Company).
Current Script:
getFirstPageURL: function() {
var session = gs.getSession();
this.logProperties('before', session);
// has roles and is not a Service Portal page - go to UI16
var nt = session.getProperty("nav_to");
var isServicePortalURL = new GlideSPScriptable().isServicePortalURL(nt);
var redirectURL = session.getProperty("login_redirect");
/* Updating this as part of landing page customization */
if (user.hasRole('itil')) {
gs.info('Top login for itil');
return '/home.do';
}
if (!(user.hasRole('itil')) && (user.getDomainID() == gs.getProperty('top.domain.company.sys_id'))) {
gs.info('company Non-ITIL Login');
return '/company';
}
if (!(user.hasRole('itil'))) {
gs.info('Top Non-ITIL Login');
return '/esc';
}
Issue Observed:
ITIL users are redirected to Service Operations Workspace instead of Platform UI.
can any one help me on this how can i redirect ITIL user to Classic View (legacy).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi,
Is your instance redirected to Service Operation workspace if you hit the URL https://<instance>.service-now.com/home.do
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
When ITIL user logged inn by default it is redirecting to SOW ( /now/sow/home).
tried to update the script include, i'm able to see the logs but still it's not redirecting to /now/nav/ui/home
