From 13b4d8c606be20d3975487bf5442eaee698ee479 Mon Sep 17 00:00:00 2001 From: Mario Visic Date: Thu, 24 May 2012 23:13:25 +0800 Subject: [PATCH] Do not pass the host option to URL helpers for sitemaps. Fixes #415. --- app/views/locomotive/public/sitemaps/show.xml.builder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/locomotive/public/sitemaps/show.xml.builder b/app/views/locomotive/public/sitemaps/show.xml.builder index 03eaecc1..73727da7 100644 --- a/app/views/locomotive/public/sitemaps/show.xml.builder +++ b/app/views/locomotive/public/sitemaps/show.xml.builder @@ -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