Merge pull request #3171 from techAPJ/patch-1

FIX: subcategory url was incorrect in rss
This commit is contained in:
Régis Hanol 2015-02-05 10:05:13 +01:00
commit 8061f7fa72
1 changed files with 2 additions and 2 deletions

View File

@ -130,9 +130,9 @@ class ListController < ApplicationController
discourse_expires_in 1.minute
@title = @category.name
@link = "#{Discourse.base_url}/c/#{@category.slug_for_url}"
@link = "#{Discourse.base_url}#{@category.url}"
@description = "#{I18n.t('topics_in_category', category: @category.name)} #{@category.description}"
@atom_link = "#{Discourse.base_url}/c/#{@category.slug_for_url}.rss"
@atom_link = "#{Discourse.base_url}#{@category.url}.rss"
@topic_list = TopicQuery.new.list_new_in_category(@category)
render 'list', formats: [:rss]