mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix milestone links (#12405)
The milestone pages links should direct to the milestone pages Fix #10215 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -242,7 +242,7 @@
 | 
				
			|||||||
						{{end}}
 | 
											{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
						{{if .Milestone}}
 | 
											{{if .Milestone}}
 | 
				
			||||||
							<a class="milestone" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.Milestone.ID}}&assignee={{$.AssigneeID}}">
 | 
												<a class="milestone" href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}">
 | 
				
			||||||
								{{svg "octicon-milestone" 16}} {{.Milestone.Name}}
 | 
													{{svg "octicon-milestone" 16}} {{.Milestone.Name}}
 | 
				
			||||||
							</a>
 | 
												</a>
 | 
				
			||||||
						{{end}}
 | 
											{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -142,7 +142,7 @@
 | 
				
			|||||||
									{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
 | 
														{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
 | 
				
			||||||
								{{end}}
 | 
													{{end}}
 | 
				
			||||||
								{{if .Milestone}}
 | 
													{{if .Milestone}}
 | 
				
			||||||
									<a class="milestone" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.Milestone.ID}}&assignee={{$.AssigneeID}}">
 | 
														<a class="milestone" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/milestone/{{.Milestone.ID}}">
 | 
				
			||||||
										{{svg "octicon-milestone" 16}} {{.Milestone.Name}}
 | 
															{{svg "octicon-milestone" 16}} {{.Milestone.Name}}
 | 
				
			||||||
									</a>
 | 
														</a>
 | 
				
			||||||
								{{end}}
 | 
													{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user