Skip to content

Commit

Permalink
fix: preserve query params when redirecting (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieutu authored and pi0 committed May 23, 2019
1 parent bb20a00 commit 39fa137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@ export default class Auth {
if (noRouter) {
window.location.replace(to)
} else {
this.ctx.redirect(to)
this.ctx.redirect(to, this.ctx.query)
}
} else {
this.ctx.redirect(to)
this.ctx.redirect(to, this.ctx.query)
}
}

Expand Down

0 comments on commit 39fa137

Please sign in to comment.