mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Fix links for non-HTML output formats
They were not correct for regular pages. Fixes #5877
This commit is contained in:
		@@ -235,7 +235,7 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) {
 | 
			
		||||
			pagePath = pjoin(pagePath, d.Type.BaseName+d.Type.MediaType.FullSuffix())
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if isUgly && !isHtmlIndex(pagePath) {
 | 
			
		||||
		if !isHtmlIndex(pagePath) {
 | 
			
		||||
			link = pagePath
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user