From 9afef7b209cb00263514ca39a57cbd08823a369b Mon Sep 17 00:00:00 2001 From: izumiya <92346+izumiya@users.noreply.github.com> Date: Thu, 9 Feb 2023 21:01:28 +0900 Subject: [PATCH] fix(core): fix missing query parameters when router.base is a subdirectory. --- src/core/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/auth.ts b/src/core/auth.ts index 55bb02fb0..91fdd5ed1 100644 --- a/src/core/auth.ts +++ b/src/core/auth.ts @@ -443,7 +443,7 @@ export class Auth { if (process.client) { if (noRouter) { if (isRelativeURL(to) && !to.includes(this.ctx.base)) { - to = normalizePath('/' + this.ctx.base + '/' + to) // Don't pass in context to preserve base url + to = normalizePath('/' + this.ctx.base) + to // Don't pass in context to preserve base url } window.location.replace(to) } else {