shithub: hugo

Download patch

ref: 7d39990497f0ee34c252ca746850f75bab18ff5e
parent: 9b2028626e2e50f6d3502bcd87543aa4bd5d04d0
author: Albert Nigmatzianov <[email protected]>
date: Mon May 8 13:56:22 EDT 2017

helpers: Don't clean the path before Join

Join will call Clean anyway.

--- a/helpers/path.go
+++ b/helpers/path.go
@@ -415,7 +415,7 @@
 		if len(in) < 2 {
 			return b.Separator()
 		}
-		return b.Join(b.Clean(in), "index.html")
+		return b.Join(in, "index.html")
 	}
 	name, ext := fileAndExt(in, b)
 	if name == "index" {