Skip to content

Commit 1530069

Browse files
authored
Fix milestone links (go-gitea#12405)
The milestone pages links should direct to the milestone pages Fix go-gitea#10215 Signed-off-by: Andrew Thornton <[email protected]>
1 parent bac65f1 commit 1530069

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/repo/issue/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
{{end}}
243243

244244
{{if .Milestone}}
245-
<a class="milestone" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.Milestone.ID}}&assignee={{$.AssigneeID}}">
245+
<a class="milestone" href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}">
246246
{{svg "octicon-milestone" 16}} {{.Milestone.Name}}
247247
</a>
248248
{{end}}

templates/user/dashboard/issues.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
143143
{{end}}
144144
{{if .Milestone}}
145-
<a class="milestone" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.Milestone.ID}}&assignee={{$.AssigneeID}}">
145+
<a class="milestone" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/milestone/{{.Milestone.ID}}">
146146
{{svg "octicon-milestone" 16}} {{.Milestone.Name}}
147147
</a>
148148
{{end}}

0 commit comments

Comments
 (0)