Update server/handler/try.go

Add query paremeter to redirects
This commit is contained in:
reckter 2025-06-16 22:50:11 +02:00
parent 566dd8e5c6
commit 871b9e2478

View file

@ -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") log.Debug().Str("to", redirect_to).Msg("redirecting")