diff options
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/pull.go | 2 | ||||
-rw-r--r-- | routers/repo/setting.go | 2 | ||||
-rw-r--r-- | routers/repo/webhook.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 922d64ef..da1ee149 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -531,7 +531,7 @@ func PrepareCompareDiff( ) // Get diff information. - ctx.Data["CommitRepoLink"] = headRepo.RepoLink() + ctx.Data["CommitRepoLink"] = headRepo.Link() headCommitID, err := headGitRepo.GetBranchCommitID(headBranch) if err != nil { diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 14d29636..6fd195aa 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -122,7 +122,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { } ctx.Flash.Success(ctx.Tr("repo.settings.update_settings_success")) - ctx.Redirect(repo.RepoLink() + "/settings") + ctx.Redirect(repo.Link() + "/settings") case "advanced": repo.EnableWiki = form.EnableWiki diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index 460a430a..d9048623 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -349,7 +349,7 @@ func TestWebhook(ctx *context.Context) { { ID: ctx.Repo.CommitID, Message: ctx.Repo.Commit.Message(), - URL: ctx.Repo.Repository.FullRepoLink() + "/commit/" + ctx.Repo.CommitID, + URL: ctx.Repo.Repository.FullLink() + "/commit/" + ctx.Repo.CommitID, Author: &api.PayloadAuthor{ Name: ctx.Repo.Commit.Author.Name, Email: ctx.Repo.Commit.Author.Email, |