FIX: subcategory url was incorrect in rss

This commit is contained in:
Arpit Jalan 2015-02-05 13:22:28 +05:30
parent 970b160eef
commit 026df5185e
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]