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
|
const fullPathname = new URL(fullUrl).pathname
|
||||||
|
|
||||||
if (webviews.includes(fullPathname)) {
|
if (webviews.includes(fullPathname)) {
|
||||||
const redirectUrl = `/${lang}/webview/refresh?returnurl=${encodeURIComponent(fullUrl)}`
|
const redirectUrl = `/${lang}/webview/refresh?returnurl=${encodeURIComponent(fullPathname)}`
|
||||||
console.error(
|
console.error(
|
||||||
"Unautorized in webview, redirecting to: ",
|
"Unautorized in webview, redirecting to: ",
|
||||||
redirectUrl
|
redirectUrl
|
||||||
|
|||||||
Reference in New Issue
Block a user