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.

Redirecting to an external page when logging out

Abbottronix
Tera Guru

I want my users to be redirected to an external website when they logout. 

 

I found this OOTB script that I thought might do what I want:

Abbottronix_0-1724639739571.png

 

However, when I activated it, instead of taking me to Google, it took me here:

 

Abbottronix_1-1724639810486.png

 

 

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Abbottronix 

 

On line number 9, you are trying to append gotoURL with the existing logout URL. Try updating 

response.sendRedirect(gotoURL);

Hope this works.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Abbottronix 

 

On line number 9, you are trying to append gotoURL with the existing logout URL. Try updating 

response.sendRedirect(gotoURL);

Hope this works.

Thank you very much!