mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-30 00:03:57 -04:00 
			
		
		
		
	Use correct pull request commit link instead of a generic commit link (#26434)
Replace #26197 Since #25528 merged, the links of pull request commits should be redirect to pull file changes UI but not the generic one. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		
							parent
							
								
									7018659a1d
								
							
						
					
					
						commit
						ca74b074ea
					
				| @ -43,6 +43,8 @@ | ||||
| 							{{end}} | ||||
| 							{{if $.PageIsWiki}} | ||||
| 								<a href="{{$commitRepoLink}}/wiki/commit/{{.ID}}" rel="nofollow" class="{{$class}}"> | ||||
| 							{{else if $.PageIsPullCommits}} | ||||
| 								<a href="{{$commitRepoLink}}/pulls/{{$.Issue.Index}}/commits/{{.ID}}" rel="nofollow" class="{{$class}}"> | ||||
| 							{{else if $.Reponame}} | ||||
| 								<a href="{{$commitRepoLink}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}"> | ||||
| 							{{else}} | ||||
| @ -54,6 +56,8 @@ | ||||
| 								{{end}} | ||||
| 							{{if $.PageIsWiki}} | ||||
| 								</a> | ||||
| 							{{else if $.PageIsPullCommits}} | ||||
| 								</a> | ||||
| 							{{else if $.Reponame}} | ||||
| 								</a> | ||||
| 							{{else}} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user