From 00a060caa6cd591cb4b233bc2d8aea39e105e96e Mon Sep 17 00:00:00 2001 From: iacore Date: Tue, 27 Aug 2024 20:26:24 +0000 Subject: [PATCH] fix redirect --- utils/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/http.go b/utils/http.go index 37dbc30..35205b8 100644 --- a/utils/http.go +++ b/utils/http.go @@ -23,7 +23,7 @@ func RedirectTo(w http.ResponseWriter, r *http.Request, path string, query_param for k, v := range query_params { query.Add(k, v) } - http.Redirect(w, r, path+query.Encode(), http.StatusSeeOther) + http.Redirect(w, r, path+"?"+query.Encode(), http.StatusSeeOther) return nil }