Skip to content

Commit 1e1211c

Browse files
jolheiserzeripath
authored andcommitted
Add SubURL to redirect path (#8632) (#8634) (#8640)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
1 parent 10e549d commit 1e1211c

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
@@ -233,7 +233,7 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
233233
if ctx.Req.URL.RawQuery != "" {
234234
redirectPath += "?" + ctx.Req.URL.RawQuery
235235
}
236-
ctx.Redirect(redirectPath)
236+
ctx.Redirect(path.Join(setting.AppSubURL, redirectPath))
237237
}
238238

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

0 commit comments

Comments
 (0)