mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(vue-app): redirect to external url replaces current history entry (#9500)
This commit is contained in:
parent
eb6bd9febc
commit
0742f59e24
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user