mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
hugolib: Must update PathSpec on SiteInfo per language
This commit is contained in:
@@ -78,6 +78,8 @@ func doTestMultiSitesMainLangInRoot(t *testing.T, defaultInSubDir bool) {
|
||||
require.Equal(t, "", frSite.Info.LanguagePrefix)
|
||||
}
|
||||
|
||||
require.Equal(t, "/blog/en/foo", enSite.Info.pathSpec.RelURL("foo", true))
|
||||
|
||||
doc1en := enSite.Pages[0]
|
||||
doc1fr := frSite.Pages[0]
|
||||
|
||||
|
Reference in New Issue
Block a user