From 0e80a056af32e7f43c295923c5fa2aebb7b69a8d Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 22 Oct 2019 11:47:08 -0500 Subject: [PATCH] Add SubURL to redirect path Signed-off-by: jolheiser --- modules/context/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/context/repo.go b/modules/context/repo.go index e2aebc019cddf..8a9c9e4b8cf70 100644 --- a/modules/context/repo.go +++ b/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) {