Skip to content

Commit

Permalink
fix #373 redirect to relative path ./auth
Browse files Browse the repository at this point in the history
  • Loading branch information
bnfinet committed May 21, 2021
1 parent dd116e4 commit ae95668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func CallbackHandler(w http.ResponseWriter, r *http.Request) {
return
}
// has to have a trailing / in its path, because the path of the session cookie is set to /auth/{state}/.
authStateURL := fmt.Sprintf("/auth/%s/?%s", queryState, r.URL.RawQuery)
authStateURL := fmt.Sprintf("./auth/%s/?%s", queryState, r.URL.RawQuery)
responses.Redirect302(w, r, authStateURL)

}
Expand Down

0 comments on commit ae95668

Please sign in to comment.