mirror of
https://github.com/go-gitea/gitea
synced 2025-08-12 12:38:20 +00:00
@@ -620,7 +620,7 @@ func RepoRefByType(refType RepoRefType) macaron.Handler {
|
||||
// redirect from old URL scheme to new URL scheme
|
||||
ctx.Redirect(path.Join(
|
||||
setting.AppSubURL,
|
||||
strings.TrimSuffix(ctx.Req.URL.String(), ctx.Params("*")),
|
||||
strings.TrimSuffix(ctx.Req.URL.Path, ctx.Params("*")),
|
||||
ctx.Repo.BranchNameSubURL(),
|
||||
ctx.Repo.TreePath))
|
||||
return
|
||||
|
Reference in New Issue
Block a user