mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
FIX: permalinks like read.php should work
This commit is contained in:
parent
9224afacaf
commit
ad481b3427
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user