1
0
Fork 0
mirror of https://codeberg.org/Codeberg/pages-server.git synced 2025-08-10 19:00:54 +00:00

Update server/handler/try.go

Add query paremeter to redirects
This commit is contained in:
reckter 2025-06-16 22:50:11 +02:00 committed by crapStone
parent 5477ba2c46
commit 7df0124fb1

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")