Skip to content

Commit

Permalink
Fix auth redirect URL being double encoded (#1280)
Browse files Browse the repository at this point in the history
Co-authored-by: Geometrically <[email protected]>
  • Loading branch information
brawaru and Geometrically authored Jul 20, 2024
1 parent 3a73994 commit ba9dc6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/frontend/src/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ export default defineNuxtRouteMiddleware(async (_to, from) => {
}
}

const redirect = encodeURIComponent(url.pathname + url.search);

return await navigateTo(
{
path: "/auth/sign-in",
query: {
redirect,
redirect: `${url.pathname}${url.search}`,
...extractedParams,
},
},
Expand Down

0 comments on commit ba9dc6c

Please sign in to comment.