Skip to content

Commit

Permalink
fix(vue-app): redirect to external url replaces current history entry (
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-fadaei committed Jun 30, 2021
1 parent eb6bd9f commit 0742f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-app/template/utils.js
Expand Up @@ -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')
Expand Down

0 comments on commit 0742f59

Please sign in to comment.