From 4c47711919278fc8f0c3a062dd96615d62d131a3 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 10 Sep 2009 16:42:59 +0200 Subject: and one more tiny modification on the atom feed --- app/helpers/link_helper.rb | 4 ++++ app/views/rss/updates.xml.builder | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb index 2d31230..e5fc632 100644 --- a/app/helpers/link_helper.rb +++ b/app/helpers/link_helper.rb @@ -9,6 +9,10 @@ module LinkHelper ) end + def content_url_helper path_array + request.protocol + request.host_with_port + content_path_helper(path_array) + end + def link_to_path title, path, html_options = {} if params[:page_path] active = (params[:page_path].join("/") == path.sub(/^\//, "")) diff --git a/app/views/rss/updates.xml.builder b/app/views/rss/updates.xml.builder index 57a0f42..3cca944 100644 --- a/app/views/rss/updates.xml.builder +++ b/app/views/rss/updates.xml.builder @@ -17,7 +17,7 @@ xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do :href => content_path_helper(item.node.unique_path), :rel => "alternate" ) - xml.id(content_path_helper(item.node.unique_path)) + xml.id(content_url_helper(item.node.unique_path)) xml.updated(item.updated_at.xmlschema) xml.content(:type => "xhtml") do xml.div(item.body, :xmlns => "http://www.w3.org/1999/xhtml") -- cgit v1.3