mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	@@ -221,6 +221,8 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) {
 | 
			
		||||
 | 
			
		||||
		link = pagePath
 | 
			
		||||
 | 
			
		||||
		// TODO(bep) this should not happen after the fix in https://github.com/gohugoio/hugo/issues/4870
 | 
			
		||||
		// but we may need some more testing before we can remove it.
 | 
			
		||||
		if baseNameSameAsType {
 | 
			
		||||
			link = strings.TrimSuffix(link, d.BaseName)
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user