From ae956689c780f1407e413a9f56819c2f956eec38 Mon Sep 17 00:00:00 2001 From: Benjamin Foote Date: Fri, 21 May 2021 11:13:39 -0700 Subject: [PATCH] fix #373 redirect to relative path `./auth` --- handlers/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/auth.go b/handlers/auth.go index 1594053a..42b03327 100644 --- a/handlers/auth.go +++ b/handlers/auth.go @@ -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) }