mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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:
		@@ -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}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user