Skip to content

Commit d7416ed

Browse files
committed
improve
1 parent 3977b02 commit d7416ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

routers/web/repo/issue.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,9 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption uti
421421
ctx.Data["IssueStats"] = issueStats
422422
ctx.Data["OpenCount"] = issueStats.OpenCount
423423
ctx.Data["ClosedCount"] = issueStats.ClosedCount
424-
ctx.Data["OpenLink"] = fmt.Sprintf("%s?q=%s&type=%s&sort=%s&state=open&labels=%s&milestone=%d&project=%d&assignee=%d&poster=%d&archived=%t", ctx.Link, keyword, viewType, sortType, selectLabels, mentionedID, projectID, assigneeID, posterID, archived)
425-
ctx.Data["ClosedLink"] = fmt.Sprintf("%s?q=%s&type=%s&sort=%s&state=closed&labels=%s&milestone=%d&project=%d&assignee=%d&poster=%d&archived=%t", ctx.Link, keyword, viewType, sortType, selectLabels, mentionedID, projectID, assigneeID, posterID, archived)
424+
linkStr := "%s?q=%s&type=%s&sort=%s&state=%s&labels=%s&milestone=%d&project=%d&assignee=%d&poster=%d&archived=%t"
425+
ctx.Data["OpenLink"] = fmt.Sprintf(linkStr, ctx.Link, keyword, viewType, sortType, "open", selectLabels, mentionedID, projectID, assigneeID, posterID, archived)
426+
ctx.Data["ClosedLink"] = fmt.Sprintf(linkStr, ctx.Link, keyword, viewType, sortType, "close", selectLabels, mentionedID, projectID, assigneeID, posterID, archived)
426427
ctx.Data["SelLabelIDs"] = labelIDs
427428
ctx.Data["SelectLabels"] = selectLabels
428429
ctx.Data["ViewType"] = viewType

0 commit comments

Comments
 (0)