mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-21 08:04:07 +09:00
Unified link creation. (#15619)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user