Do not pass the host option to URL helpers for sitemaps. Fixes #415.
This commit is contained in:
parent
415817e20b
commit
13b4d8c606
@ -11,14 +11,14 @@ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
||||
if page.templatized?
|
||||
page.content_type.entries.visible.each do |c|
|
||||
xml.url do
|
||||
xml.loc page_url(page, { :content => c, :host => true })
|
||||
xml.loc page_url(page, { :content => c })
|
||||
xml.lastmod c.updated_at.to_date.to_s('%Y-%m-%d')
|
||||
xml.priority 0.9
|
||||
end
|
||||
end
|
||||
else
|
||||
xml.url do
|
||||
xml.loc page_url(page, { :host => true })
|
||||
xml.loc page_url(page)
|
||||
xml.lastmod page.updated_at.to_date.to_s('%Y-%m-%d')
|
||||
xml.priority 0.9
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user