Skip to content
Snippets Groups Projects
Commit f599c4df authored by Leonardo's avatar Leonardo
Browse files

fix(logout): use the proper invalidation flow for logout

parent 9bab4688
No related branches found
Tags v1.117.6
No related merge requests found
Pipeline #142698 failed
......@@ -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 && (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment