From 39fa137f73479917681f919fbfa38cd12b0bdb34 Mon Sep 17 00:00:00 2001 From: Mathieu TUDISCO Date: Thu, 23 May 2019 20:55:35 +0200 Subject: [PATCH] fix: preserve query params when redirecting (#193) --- lib/core/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/auth.js b/lib/core/auth.js index 75c3529c1..e24eb3831 100644 --- a/lib/core/auth.js +++ b/lib/core/auth.js @@ -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) } }