Skip to content

Commit

Permalink
Add SubURL to redirect path (go-gitea#8632)
Browse files Browse the repository at this point in the history
Signed-off-by: jolheiser <john.olheiser@gmail.com>
  • Loading branch information
jolheiser committed Oct 22, 2019
1 parent 2fbd5ae commit 6c5804f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/context/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6c5804f

Please sign in to comment.