diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 76d81d0e76..f638b6f51f 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -502,7 +502,7 @@ func ViewIssue(ctx *context.Context) { } return } - ctx.Data["Title"] = issue.Title + ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title) // Make sure type and URL matches. if ctx.Params(":type") == "issues" && issue.IsPull { diff --git a/routers/repo/pull.go b/routers/repo/pull.go index d345dbee06..baa8c1d0b5 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -6,6 +6,7 @@ package repo import ( "container/list" + "fmt" "path" "strings" @@ -148,7 +149,7 @@ func checkPullInfo(ctx *context.Context) *models.Issue { } return nil } - ctx.Data["Title"] = issue.Title + ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title) ctx.Data["Issue"] = issue if !issue.IsPull {