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 c4ff27a commit 16d5598Copy full SHA for 16d5598
src/history/base.js
@@ -126,7 +126,13 @@ export class History {
126
// next(false) -> abort navigation, ensure current URL
127
this.ensureURL(true)
128
abort(to)
129
- } else if (typeof to === 'string' || typeof to === 'object') {
+ } else if (
130
+ typeof to === 'string' ||
131
+ (typeof to === 'object' && (
132
+ typeof to.path === 'string' ||
133
+ typeof to.name === 'string'
134
+ ))
135
+ ) {
136
// next('/') or next({ path: '/' }) -> redirect
137
abort()
138
if (typeof to === 'object' && to.replace) {
0 commit comments