From 8de4866886e48233a3d33c7e503643020c4be087 Mon Sep 17 00:00:00 2001 From: Sagar Gubbi Date: Sun, 5 Sep 2021 12:44:10 +0530 Subject: [PATCH] Fix URL query params in next path of signin flow --- views/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/auth.go b/views/auth.go index cd974d6..1f46978 100644 --- a/views/auth.go +++ b/views/auth.go @@ -86,7 +86,7 @@ func mustAuth(next http.Handler) http.Handler { HttpOnly: true, }) if r.Method == "GET" { - http.Redirect(w, r, basePath+"auth/signin?next="+r.URL.Path, http.StatusSeeOther) + http.Redirect(w, r, basePath+"auth/signin?next="+r.URL.Path+"?"+r.URL.RawQuery, http.StatusSeeOther) } else { http.Redirect(w, r, basePath, http.StatusSeeOther) }