Logout Redirect

Hi all. I'm running into a problem when logging out of Retool our users are being redirected to the wrong URL (even though I've followed the logout button docs here.

This happens to both admins as well as App (portal) users.

Is there somewhere else to set the URL redirect when logging out? Is this a google auth setting?

Thank you.

Contact Retool Support

Hey @Tzamps,

I don't know why its happens but you can also consider this approach:
After logging out, redirect users to a specific app URL. To achieve this, create a dedicated login page within your app and use its URL as the redirection target after logout.

4 Likes

Thanks @WidleStudioLLP . We do have a dedicated log-in page and have coded the log-out button to point there, however its being overridden and its unclear why.

My sense is at some point in the past a previous dev hard coded this somewhere in retool, however its unclear where to find this.

Any help is appreciated!

1 Like

Hi @Tzamps,

I haven't been able to reproduce this yet :thinking:

Could you share a screenshot of the configuration? And could you share what url it is redirecting to instead?

If something is hardcoded in your app, you may be able to track it down in the app JSON :crossed_fingers:

Is the app embedded?

Hi @Tess,

1 - The App is not embedded, it is a Retool WebApp/Portal.
Users have the option to login via SSO with Google.
2 - Screenshot of the configuration:
The logout button simply points to: /logout
Maybe this is the issue?
Should the redirect go to the login page?
Concerned that this would not really log the user out/terminate the user session.
3 - As you suggested, I exported the app to json and could not find the redirect url hardcoded in the code so this is coming from elsewhere.

Question:
Where can we see what url the /logout will send the user to?
I cannot find this setting anywhere. The app uses a custom domain under branding.

Thank you!

What url is it currently taking folks to?

Does it make a difference if you hardcode the full logout url, https://retool-base-url-here/logout?

Is this happening on Retool Cloud?

On my Cloud account, the set up that you've shared in the screenshot logs me out and then routes me to my custom log in page. Hoping to narrow down the difference in our set ups