Skip to content

Commit

Permalink
fix(vue-app): duplicated router.base when using context.redirect(obje…
Browse files Browse the repository at this point in the history
…ct) (#5290)
  • Loading branch information
niandalu authored and pi0 committed Mar 20, 2019
1 parent 0eb5ed9 commit cf02e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-app/template/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function setContext(app, context) {
status = 302
}
if (pathType === 'object') {
path = app.router.resolve(path).href
path = app.router.resolve(path).route.fullPath
}
// "/absolute/route", "./relative/route" or "../relative/route"
if (/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path)) {
Expand Down

0 comments on commit cf02e82

Please sign in to comment.