aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-09-30 16:24:09 +0200
committerBjørn Erik Pedersen <[email protected]>2016-09-30 16:24:57 +0200
commitbf0dfa3e2d2688aea4a97c8c0fadd1207263ca96 (patch)
tree6cdfd738511288b4330e2879d7878e1b7d0229ec /hugolib/hugo_sites_test.go
parentd30c6a26d1e7e85cec1711e192b0f9df04b6a4c2 (diff)
downloadhugo-bf0dfa3e2d2688aea4a97c8c0fadd1207263ca96.tar.gz
hugo-bf0dfa3e2d2688aea4a97c8c0fadd1207263ca96.zip
Fix URL in multilanguage sitemap index
Fixes #2509
Diffstat (limited to 'hugolib/hugo_sites_test.go')
-rw-r--r--hugolib/hugo_sites_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/hugo_sites_test.go b/hugolib/hugo_sites_test.go
index baaa0ce8f..b7a52b1e4 100644
--- a/hugolib/hugo_sites_test.go
+++ b/hugolib/hugo_sites_test.go
@@ -116,8 +116,8 @@ func doTestMultiSitesMainLangInRoot(t *testing.T, defaultInSubDir bool) {
// Sitemaps behaves different: In a multilanguage setup there will always be a index file and
// one sitemap in each lang folder.
assertFileContent(t, "public/sitemap.xml", true,
- "<loc>http:/example.com/blog/en/sitemap.xml</loc>",
- "<loc>http:/example.com/blog/fr/sitemap.xml</loc>")
+ "<loc>http://example.com/blog/en/sitemap.xml</loc>",
+ "<loc>http://example.com/blog/fr/sitemap.xml</loc>")
if defaultInSubDir {
assertFileContent(t, "public/fr/sitemap.xml", true, "<loc>http://example.com/blog/fr/</loc>")
@@ -313,8 +313,8 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) {
// Check sitemap(s)
sitemapIndex := readDestination(t, "public/sitemap.xml")
- require.True(t, strings.Contains(sitemapIndex, "<loc>http:/example.com/blog/en/sitemap.xml</loc>"), sitemapIndex)
- require.True(t, strings.Contains(sitemapIndex, "<loc>http:/example.com/blog/fr/sitemap.xml</loc>"), sitemapIndex)
+ require.True(t, strings.Contains(sitemapIndex, "<loc>http://example.com/blog/en/sitemap.xml</loc>"), sitemapIndex)
+ require.True(t, strings.Contains(sitemapIndex, "<loc>http://example.com/blog/fr/sitemap.xml</loc>"), sitemapIndex)
sitemapEn := readDestination(t, "public/en/sitemap.xml")
sitemapFr := readDestination(t, "public/fr/sitemap.xml")
require.True(t, strings.Contains(sitemapEn, "http://example.com/blog/en/sect/doc2/"), sitemapEn)