diff --git a/apps/web/src/components/navbar/navbar.tsx b/apps/web/src/components/navbar/navbar.tsx index 1c17a0b3154e76a90aef97b6bfe7cb11093f8487..1ef0aa20e9b1e304f86db5130e04e77410552e33 100644 --- a/apps/web/src/components/navbar/navbar.tsx +++ b/apps/web/src/components/navbar/navbar.tsx @@ -105,7 +105,8 @@ export const Navbar = () => { <DropdownItem value="Log out" onClick={() => { - location.replace(`${getEnvVariable('GP_AUTH_URL')}/outpost.goauthentik.io/sign_out`); + const current = new URL(window.location.href); + location.replace(`${getEnvVariable('GP_AUTH_URL')}if/flow/default-invalidation-flow/?next=${current.toString()}`); }} /> {authCache.authorization?.demoUser?.R && (