mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-07-03 08:56:35 +00:00
Update server/handler/try.go
Add query paremeter to redirects
This commit is contained in:
parent
5477ba2c46
commit
7df0124fb1
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