From 871b9e247877f7832249f9037a19b16d0695a52c Mon Sep 17 00:00:00 2001 From: reckter Date: Mon, 16 Jun 2025 22:50:11 +0200 Subject: [PATCH] Update server/handler/try.go Add query paremeter to redirects --- server/handler/try.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handler/try.go b/server/handler/try.go index e5fc49b..f084b28 100644 --- a/server/handler/try.go +++ b/server/handler/try.go @@ -33,7 +33,7 @@ func tryUpstream(log zerolog.Logger, ctx *context.Context, giteaClient *gitea.Cl } } - redirect_to := "https://" + canonicalDomain + canonicalPath + redirect_to := "https://" + canonicalDomain + canonicalPath + "?" + ctx.Req.URL.RawQuery log.Debug().Str("to", redirect_to).Msg("redirecting")