diff --git a/packages/vue-app/template/utils.js b/packages/vue-app/template/utils.js index 2b52d75862fb..91bd66ee4ee4 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')