mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-06-19 15:12:40 +02:00
Update server/handler/try.go
Add query paremeter to redirects
This commit is contained in:
parent
566dd8e5c6
commit
871b9e2478
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue