From 0742f59e2478bd3998fd4d49b6200584ee5e2721 Mon Sep 17 00:00:00 2001 From: Mohammad Saleh Fadaei <54557683+ms-fadaei@users.noreply.github.com> Date: Wed, 30 Jun 2021 22:05:22 +0430 Subject: [PATCH] fix(vue-app): redirect to external url replaces current history entry (#9500) --- packages/vue-app/template/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue-app/template/utils.js b/packages/vue-app/template/utils.js index 2b52d75862..91bd66ee4e 100644 --- a/packages/vue-app/template/utils.js +++ b/packages/vue-app/template/utils.js @@ -249,8 +249,8 @@ export async function setContext (app, context) { }) } if (process.client) { - // https://developer.mozilla.org/en-US/docs/Web/API/Location/replace - window.location.replace(path) + // https://developer.mozilla.org/en-US/docs/Web/API/Location/assign + window.location.assign(path) // Throw a redirect error throw new Error('ERR_REDIRECT')