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

fix(logout): properly encode next url

parent 47d1834e
No related branches found
No related tags found
No related merge requests found
Pipeline #142703 passed
......@@ -105,8 +105,8 @@ export const Navbar = () => {
<DropdownItem
value="Log out"
onClick={() => {
const current = new URL(window.location.href);
location.replace(`${getEnvVariable('GP_AUTH_URL')}if/flow/default-invalidation-flow/?next=${current.toString()}`);
const current = encodeURIComponent(window.location.href);
location.replace(`${getEnvVariable('GP_AUTH_URL')}if/flow/default-invalidation-flow/?next=${current}`);
}}
/>
{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