Skip to content

Commit 27ced43

Browse files
committed
fix relative params condition logic (close vuejs#1169)
1 parent 39393e4 commit 27ced43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/location.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function normalizeLocation (
2626
if (current.name) {
2727
next.name = current.name
2828
next.params = params
29-
} else if (current.matched) {
29+
} else if (current.matched.length) {
3030
const rawPath = current.matched[current.matched.length - 1].path
3131
next.path = fillParams(rawPath, params, `path ${current.path}`)
3232
} else if (process.env.NODE_ENV !== 'production') {

0 commit comments

Comments
 (0)