Browse Source

Add SubURL to redirect path (#8632) (#8634)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
release/v1.10
John Olheiser 3 years ago
committed by zeripath
parent
commit
83c90e9ba0
  1. 2
      modules/context/repo.go

2
modules/context/repo.go

@ -236,7 +236,7 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
if ctx.Req.URL.RawQuery != "" {
redirectPath += "?" + ctx.Req.URL.RawQuery
}
ctx.Redirect(redirectPath)
ctx.Redirect(path.Join(setting.AppSubURL, redirectPath))
}
func repoAssignment(ctx *Context, repo *models.Repository) {

Loading…
Cancel
Save