1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +12:00

Encode url properly

This commit is contained in:
Adria Navarro 2023-12-13 12:44:32 +01:00
parent a2cb32225d
commit 0b8d7904df

View file

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