summaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index 07873a3c6c..8f4377b041 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -204,7 +204,7 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
redirectPath := strings.Replace(
ctx.Req.URL.Path,
fmt.Sprintf("%s/%s", ownerName, previousRepoName),
- fmt.Sprintf("%s/%s", ownerName, repo.Name),
+ fmt.Sprintf("%s/%s", repo.MustOwnerName(), repo.Name),
1,
)
ctx.Redirect(redirectPath)