diff options
Diffstat (limited to 'target/htmlredirect.go')
-rw-r--r-- | target/htmlredirect.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/htmlredirect.go b/target/htmlredirect.go index 6ccfb73d3..d2fb5f527 100644 --- a/target/htmlredirect.go +++ b/target/htmlredirect.go @@ -3,7 +3,7 @@ package target import ( "bytes" "html/template" - "path" + "path/filepath" "strings" "github.com/spf13/hugo/helpers" @@ -41,7 +41,7 @@ func (h *HTMLRedirectAlias) Translate(alias string) (aliasPath string, err error } else if !strings.HasSuffix(alias, ".html") { alias = alias + "/index.html" } - return path.Join(h.PublishDir, helpers.MakePath(alias)), nil + return filepath.Join(h.PublishDir, helpers.MakePath(alias)), nil } type AliasNode struct { |