diff --git a/lib/trpc/server.ts b/lib/trpc/server.ts index a6467fb91..d824755b4 100644 --- a/lib/trpc/server.ts +++ b/lib/trpc/server.ts @@ -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