mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
helpers: Don't clean the path before Join
Join will call Clean anyway.
This commit is contained in:
1 parent
9b2028626e
commit
7d39990497
1 file changed
+1
-1
+1
-1
@@ -415,7 +415,7 @@ func prettifyPath(in string, b filepathPathBridge) string {
|
||||
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" {
|
||||
|
||||
Reference in new issue
Block a user