diff options
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index b57c7e91..0315851a 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -639,7 +639,7 @@ func ViewIssue(ctx *context.Context) { ctx.Data["IsPullBranchDeletable"] = pull.BaseRepoID == pull.HeadRepoID && ctx.Repo.IsWriter() && ctx.Repo.GitRepo.IsBranchExist(pull.HeadBranch) - deleteBranchUrl := ctx.Repo.RepoLink + "/branches/" + pull.HeadBranch + "/delete" + deleteBranchUrl := ctx.Repo.RepoLink + "/branches/delete/" + pull.HeadBranch ctx.Data["DeleteBranchLink"] = fmt.Sprintf("%s?commit=%s&redirect_to=%s", deleteBranchUrl, pull.MergedCommitID, ctx.Data["Link"]) } |