Skip to content

Commit

Permalink
fix(login): don't double encodeURI (#11448)
Browse files Browse the repository at this point in the history
URLSearchParams.toString() handles this. So we must not encode the
parameter.
  • Loading branch information
fiji-flo authored Jul 10, 2024
1 parent f52482c commit 821f69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/ui/atoms/login-link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function useLoginUrl() {
const sp = new URLSearchParams();

let next = pathname ? pathname + search : `/${locale}/`;
sp.set("next", encodeURI(next));
sp.set("next", next);

let prefix = "";
// When doing local development with Yari, the link to authenticate in Kuma
Expand Down

0 comments on commit 821f69a

Please sign in to comment.