diff --git a/src/util/location.js b/src/util/location.js index fb98d4537..22b943891 100644 --- a/src/util/location.js +++ b/src/util/location.js @@ -14,6 +14,9 @@ export function normalizeLocation ( router: ?VueRouter ): Location { let next: Location = typeof raw === 'string' ? { path: raw } : raw + if (!next) { + return {} + } // named target if (next._normalized) { return next