projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b20286
)
helpers: Don't clean the path before Join
author
Albert Nigmatzianov
<albertnigma@gmail.com>
Mon, 8 May 2017 15:56:22 +0000
(17:56 +0200)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Tue, 9 May 2017 12:07:43 +0000
(14:07 +0200)
Join will call Clean anyway.
helpers/path.go
patch
|
blob
|
history
diff --git
a/helpers/path.go
b/helpers/path.go
index d246b57c3c44508dabdf603de7a6a45ebf812f41..de3de2a02ab0f4579717e9098ec0b1f44d50c9e2 100644
(file)
--- a/
helpers/path.go
+++ b/
helpers/path.go
@@
-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" {