FIX: permalinks like read.php should work

This commit is contained in:
Arpit Jalan 2015-09-11 00:16:37 +05:30
parent 9224afacaf
commit ad481b3427
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ Discourse::Application.routes.draw do
end
Discourse.filters.each do |filter|
get "#{filter}" => "list##{filter}"
get "#{filter}" => "list##{filter}", constraints: { format: /(json|html)/ }
get "c/:category/l/#{filter}" => "list#category_#{filter}", as: "category_#{filter}"
get "c/:category/none/l/#{filter}" => "list#category_none_#{filter}", as: "category_none_#{filter}"
get "c/:parent_category/:category/l/#{filter}" => "list#parent_category_category_#{filter}", as: "parent_category_category_#{filter}"