- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2017 05:09 AM
We have a requirement where if the User without roles try to login by clicking login for "XXX.service-now.com/SAP" is redirecting to SAP(as expected and SAP is the URL suffix of the service portal). but if the user with roles perform the same action its redirecting to nav page , I checked the Login properties ,created "glide.entry.first.page.script" and checked Header information of the portal as its redirecting to modalLogin Where can I find "modalLogin" and is there a better way to redirect both users with roles and without roles to SAP if they tried login ?.
and if the user tries to login to serviceNow will the changes effect? if user with role tries to login XXX.service-now.com then he should redirect to navpage ( as expected ) but if tried to login from XXX.service-now.com/SAP then should redirect to portal
can some one help me with this issue . this is kind of show stopper for my work . Thanks in advance for your time.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2017 06:35 AM
In the client controller replace
$scope.openLogin = function () {
remove line 12 , 13 ,14 and paste the below line
};
$scope.openLogin = function () {
window.location = 'nav_to.do?uri=' + encodeURIComponent(window.location.href.replace(window.location.protocol+'//'+window.location.host, ''));
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 11:48 AM
Solution : we opened a hi ticket and they resolved it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2017 04:48 AM
Hi Kammila,
Can you please share how it was solved?
Regards,
//Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2017 06:35 AM
In the client controller replace
$scope.openLogin = function () {
remove line 12 , 13 ,14 and paste the below line
};
$scope.openLogin = function () {
window.location = 'nav_to.do?uri=' + encodeURIComponent(window.location.href.replace(window.location.protocol+'//'+window.location.host, ''));
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2017 06:42 AM
Hi Kammila,
Thanks a lot - this worked perfectly.
Regards,
//Victor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 11:05 PM
Can you please advise that where do i need to edit what you have provided above?
Thanks in advance.
Manish