Skip to content

Commit

Permalink
Fix URL query params in next path of signin flow
Browse files Browse the repository at this point in the history
  • Loading branch information
s-gv committed Sep 5, 2021
1 parent b8d3668 commit 8de4866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8de4866

Please sign in to comment.