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

thanks for the reply Akhil but i already created that property and its of no use


Hi kammila,



Apart from making property, You need to make changes to script include named SPEntryPage as per your requirement mentioned above.



Hope this helps.



Regards


Ujjawal


Hello Ujjawal



I did that too