We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e9171f commit d53ec3cCopy full SHA for d53ec3c
src/history/base.js
@@ -73,7 +73,7 @@ export class History {
73
this.ensureURL(true)
74
} else if (typeof to === 'string' || typeof to === 'object') {
75
// next('/') or next({ path: '/' }) -> redirect
76
- this.push(to)
+ (typeof to === 'object' && to.replace) ? this.replace(to) : this.push(to)
77
} else {
78
// confirm transition and pass on the value
79
next(to)
0 commit comments