Service portal redirect to modal login (where to find modal login) to make changes

RudhraKAM
Tera Guru

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.

1 ACCEPTED SOLUTION

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, ''));


};


View solution in original post

9 REPLIES 9

RudhraKAM
Tera Guru

Solution : we opened a hi ticket and they resolved it


Hi Kammila,



Can you please share how it was solved?



Regards,



//Victor


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, ''));


};


Hi Kammila,



Thanks a lot - this worked perfectly.



Regards,



//Victor


Community Alums
Not applicable

Can you please advise that where do i need to edit what you have provided above?

Thanks in advance.

Manish