We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9ae16d commit 42235ccCopy full SHA for 42235cc
modules/context/repo.go
@@ -625,7 +625,7 @@ func RepoRefByType(refType RepoRefType) macaron.Handler {
625
// redirect from old URL scheme to new URL scheme
626
ctx.Redirect(path.Join(
627
setting.AppSubURL,
628
- strings.TrimSuffix(ctx.Req.URL.String(), ctx.Params("*")),
+ strings.TrimSuffix(ctx.Req.URL.Path, ctx.Params("*")),
629
ctx.Repo.BranchNameSubURL(),
630
ctx.Repo.TreePath))
631
return
0 commit comments