mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	hugolib: Fix paginator URL for sections with URL in front matter
Fixes #4415
This commit is contained in:
		@@ -208,11 +208,15 @@ func createTargetPath(d targetPathDescriptor) string {
 | 
			
		||||
		} else {
 | 
			
		||||
			pagePath = filepath.Join(pagePath, d.URL)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if d.Addends != "" {
 | 
			
		||||
			pagePath = filepath.Join(pagePath, d.Addends)
 | 
			
		||||
		} else if strings.HasSuffix(d.URL, "/") || !strings.Contains(d.URL, ".") {
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if strings.HasSuffix(d.URL, "/") || !strings.Contains(d.URL, ".") {
 | 
			
		||||
			pagePath = filepath.Join(pagePath, d.Type.BaseName+d.Type.MediaType.FullSuffix())
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	} else if d.Kind == KindPage {
 | 
			
		||||
		if d.ExpandedPermalink != "" {
 | 
			
		||||
			pagePath = filepath.Join(pagePath, d.ExpandedPermalink)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user