Encode url properly

This commit is contained in:
Adria Navarro 2023-12-13 12:44:32 +01:00
parent a2cb32225d
commit 0b8d7904df
1 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,8 @@ export const API = createAPIClient({
return return
} }
window.location = `${updatingUrl}?returnUrl=${encodeURI(window.location)}` window.location = `${updatingUrl}?returnUrl=${encodeURIComponent(
window.location
)}`
}, },
}) })