fix: send pathname instead of full url as redirectTo query param
This commit is contained in:
@@ -35,7 +35,7 @@ export function serverClient() {
|
||||
const fullPathname = new URL(fullUrl).pathname
|
||||
|
||||
if (webviews.includes(fullPathname)) {
|
||||
const redirectUrl = `/${lang}/webview/refresh?returnurl=${encodeURIComponent(fullUrl)}`
|
||||
const redirectUrl = `/${lang}/webview/refresh?returnurl=${encodeURIComponent(fullPathname)}`
|
||||
console.error(
|
||||
"Unautorized in webview, redirecting to: ",
|
||||
redirectUrl
|
||||
|
||||
Reference in New Issue
Block a user