diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-04-30 19:25:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 19:25:13 +0200 |
commit | c80d7f33b67ad1beff7378bcba3aa44ac84669e9 (patch) | |
tree | c479207edb2a5fe0f03d6f5d25b256a244d0dbea /routers/repo/pull.go | |
parent | 1456978246c263acd6523534cf36b35f5ddbe0eb (diff) | |
download | gitea-c80d7f33b67ad1beff7378bcba3aa44ac84669e9.tar.gz gitea-c80d7f33b67ad1beff7378bcba3aa44ac84669e9.zip |
Unified link creation. (#15619)
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r-- | routers/repo/pull.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 32d11a285b..e13ad0cc03 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -201,7 +201,7 @@ func ForkPost(ctx *context.Context) { } repo, has := models.HasForkedRepo(ctxUser.ID, traverseParentRepo.ID) if has { - ctx.Redirect(setting.AppSubURL + "/" + ctxUser.Name + "/" + repo.Name) + ctx.Redirect(ctxUser.HomeLink() + "/" + repo.Name) return } if !traverseParentRepo.IsFork { @@ -243,7 +243,7 @@ func ForkPost(ctx *context.Context) { } log.Trace("Repository forked[%d]: %s/%s", forkRepo.ID, ctxUser.Name, repo.Name) - ctx.Redirect(setting.AppSubURL + "/" + ctxUser.Name + "/" + repo.Name) + ctx.Redirect(ctxUser.HomeLink() + "/" + repo.Name) } func checkPullInfo(ctx *context.Context) *models.Issue { |