- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2017 07:16 AM
Hello all
I am stuck with an issue redirecting to service portal (not based on role but based on the link they clicked)
About the Requirement :
We are creating a service portal with public facing and when a user with or without roles click on the URL https://xxxdev.service-now.com/its , after successfully login via SSO ,it should take them to portal page and if the users with or without roles click on the https://xxxdev.service-now.com it should navigate to their nav page after successful login
After creating the properties and trying different things which mentioned in the community blog, it is still not redirecting to the correct page
The problem we are facing now is :
If a User without role try to login via https://xxxdev.service-now.com/its it is redirecting to portal page ( expected )
If the same user try to login via https://xxxdev.service-now.com/ it is still redirecting to the portal page instead of their "nav page" (un-expected )
And
If the user with roles try to login either by clicking https://xxxdev.service-now.com/its or https://xxxdev.service-now.com it is redirecting them to nav page (Un-expected)
It should redirect them to portal page if they click on https://xxxdev.service-now.com/its and to nav page if they try to click on https://xxxdev.service-now.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2017 07:28 AM
we fixed this By adding
modified the SPEntryPage.getFirstPageURL()
function to allow non-ITIL users to access "navpage.do".
69. //if (user.hasRoles() && !redirectURL && !isServicePortalURL) for users with no roles
70. if (!redirectURL && !isServicePortalURL){
71. return;
72.
73. }
and in the portal header (client controller line 11)
$scope.openLogin = function () {
$scope.modalInstance = $uibModal.open({
templateUrl: 'nav_to.do?uri=' + encodeURIComponent(window.location.href.replace(window.location.protocol+'//'+window.location.host, '')), // added this line of code for when a user try to click on some page and after login it will redirect to that page
//templateUrl: 'modalLogin', // OOB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2017 07:28 AM
we fixed this By adding
modified the SPEntryPage.getFirstPageURL()
function to allow non-ITIL users to access "navpage.do".
69. //if (user.hasRoles() && !redirectURL && !isServicePortalURL) for users with no roles
70. if (!redirectURL && !isServicePortalURL){
71. return;
72.
73. }
and in the portal header (client controller line 11)
$scope.openLogin = function () {
$scope.modalInstance = $uibModal.open({
templateUrl: 'nav_to.do?uri=' + encodeURIComponent(window.location.href.replace(window.location.protocol+'//'+window.location.host, '')), // added this line of code for when a user try to click on some page and after login it will redirect to that page
//templateUrl: 'modalLogin', // OOB