diff options
author | Albert Nigmatzianov <albertnigma@gmail.com> | 2017-05-08 17:56:22 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-09 14:07:43 +0200 |
commit | 7d39990497f0ee34c252ca746850f75bab18ff5e (patch) | |
tree | 306b1429e707bb38b78835e0a76b74dfd04bb5c8 /helpers/path.go | |
parent | 9b2028626e2e50f6d3502bcd87543aa4bd5d04d0 (diff) |
helpers: Don't clean the path before Join
Join will call Clean anyway.
Diffstat (limited to 'helpers/path.go')
-rw-r--r-- | helpers/path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path.go b/helpers/path.go index d246b57c3..de3de2a02 100644 --- 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" { |