diff options
| author | hukl <contact@smyck.org> | 2009-11-14 13:51:27 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-11-14 13:51:27 +0100 |
| commit | 713f8f76e2ae1635bb938de6d8c74587d842790f (patch) | |
| tree | a66a3418004ef511fc6987fe9852a2dd34c3835e /app/views/rss | |
| parent | f671d3c3976c1b641fe2274668ecca82bf9b16cc (diff) | |
Resolved issue of changing rss feed ids when changing the slugs of nodes
Closes #35
Diffstat (limited to 'app/views/rss')
| -rw-r--r-- | app/views/rss/updates.xml.builder | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/rss/updates.xml.builder b/app/views/rss/updates.xml.builder index 451e724..cc9c859 100644 --- a/app/views/rss/updates.xml.builder +++ b/app/views/rss/updates.xml.builder | |||
| @@ -14,11 +14,11 @@ xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do | |||
| 14 | xml.entry do | 14 | xml.entry do |
| 15 | xml.title(item.title) | 15 | xml.title(item.title) |
| 16 | xml.link( | 16 | xml.link( |
| 17 | :href => "#{@host}/de/#{item.node.unique_name}", | 17 | :href => content_url(:page_path => item.node.unique_path), |
| 18 | :rel => "alternate", | 18 | :rel => "alternate", |
| 19 | :type => "text/html" | 19 | :type => "text/html" |
| 20 | ) | 20 | ) |
| 21 | xml.id("#{@host}/de/#{item.node.unique_name}") | 21 | xml.id(content_url(:page_path => item.node.feed_id)) |
| 22 | xml.updated(item.published_at.xmlschema) | 22 | xml.updated(item.published_at.xmlschema) |
| 23 | xml.content(:type => "xhtml") do | 23 | xml.content(:type => "xhtml") do |
| 24 | xml.div(item.body, :xmlns => "http://www.w3.org/1999/xhtml") | 24 | xml.div(item.body, :xmlns => "http://www.w3.org/1999/xhtml") |
