Skip to content

Commit 83c90e9

Browse files
jolheiserzeripath
authored andcommitted
Add SubURL to redirect path (#8632) (#8634)
Signed-off-by: jolheiser <[email protected]>
1 parent 2fbd5ae commit 83c90e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/context/repo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
236236
if ctx.Req.URL.RawQuery != "" {
237237
redirectPath += "?" + ctx.Req.URL.RawQuery
238238
}
239-
ctx.Redirect(redirectPath)
239+
ctx.Redirect(path.Join(setting.AppSubURL, redirectPath))
240240
}
241241

242242
func repoAssignment(ctx *Context, repo *models.Repository) {

0 commit comments

Comments
 (0)