Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Instance with Link widget

eyal abu hamad
Mega Sage

Hello, I have Instance with Link Widget on portal that take me to other page. now I want to check if the user is logged in and then I want to route them to the page.
if the user is not logged in I want to take to login page once the widget clicked.

eyalabuhamad_0-1703417196037.png

and this is how it looks like in portal

eyalabuhamad_1-1703417265585.png

is it possible to do that ?

 

1 ACCEPTED SOLUTION

eyal abu hamad
Mega Sage

Fixed it, Cloned the widget and change the server side script. checked if there some is logged in and based on that I redirect.

View solution in original post

3 REPLIES 3

Sohail Khilji
Kilo Patron

@eyal abu hamad ,

 

This seems to be a default behaviour, if in case any users who have not logged in he will be redirected by default to login page.

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hey, this is the default page with out login

eyalabuhamad_0-1703417607590.png

 

eyal abu hamad
Mega Sage

Fixed it, Cloned the widget and change the server side script. checked if there some is logged in and based on that I redirect.