You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The published path does not have a colon. It is public/ab/s1/index.html instead of public/a:b/s1/index.html.
I have modified the existing integration test to include this case:
// Issue 12948.// Issue 12954.funcTestPermalinksWithEscapedColons(t*testing.T) {
t.Parallel()
ifhtesting.IsWindows() {
t.Skip("Windows does not support colons in paths")
}
files:=`-- hugo.toml --disableKinds = ['home','rss','sitemap','taxonomy','term'][permalinks.page]s2 = "/c\\:d/:slug/"-- content/s1/_index.md -----title: s1url: "/a\\:b/:slug/"----- content/s1/p1.md -----title: p1url: "/a\\:b/:slug/"----- content/s2/p2.md -----title: p2----- layouts/_default/single.html --{{ .Title }}-- layouts/_default/list.html --{{ .Title }}`b:=hugolib.Test(t, files)
b.AssertFileExists("public/a:b/p1/index.html", true)
b.AssertFileExists("public/a:b/s1/index.html", true)
// The above URLs come from the URL front matter field where everything is allowed.// We strip colons from paths constructed by Hugo (they are not supported on Windows).b.AssertFileExists("public/cd/p2/index.html", true)
}
The text was updated successfully, but these errors were encountered:
content/s1/_index.md
The published path does not have a colon. It is
public/ab/s1/index.html
instead ofpublic/a:b/s1/index.html
.I have modified the existing integration test to include this case:
The text was updated successfully, but these errors were encountered: