We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

@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

@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!