Merge pull request #3171 from techAPJ/patch-1
FIX: subcategory url was incorrect in rss
This commit is contained in:
commit
8061f7fa72
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue