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) }