Display full url in sitemap
This commit is contained in:
@@ -6,7 +6,7 @@ feature 'sitemap.xml' do
|
||||
p1 = Page.create name: 'en-1', title: 'EN 1', locale: 'en'
|
||||
visit "/sitemap.xml"
|
||||
page.body.should include "<lastmod>#{Date.today.strftime('%Y-%m-%d')}</lastmod>"
|
||||
page.body.should include "<loc>/en/en-1</loc>"
|
||||
page.body.should include "<loc>/nl-1</loc>"
|
||||
page.body.should include "<loc>http://www.example.com/en/en-1</loc>"
|
||||
page.body.should include "<loc>http://www.example.com/nl-1</loc>"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user