diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index f9d411a19..9092272d5 100644 --- a/hugolib/embedded_shortcodes_test.go +++ b/hugolib/embedded_shortcodes_test.go @@ -18,6 +18,7 @@ import ( "html/template" "net/url" "os" + "path/filepath" "regexp" "testing" @@ -48,7 +49,7 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) { expectedBase = baseURL } - path := "blog/post.md" + path := filepath.FromSlash("blog/post.md") in := fmt.Sprintf(`{{< %s "%s" >}}`, refShortcode, path) expected := fmt.Sprintf(`%s/simple/url/`, expectedBase)