mirror of
https://github.com/discourse/discourse.git
synced 2025-09-12 21:10:47 +08:00
FIX: when topic list is filtered by tag and category, subsequent page fetches would ignore the category filter
This commit is contained in:
parent
77064ca0f5
commit
11b3b5e30a
2 changed files with 52 additions and 8 deletions
|
@ -626,18 +626,18 @@ Discourse::Application.routes.draw do
|
|||
get '/check' => 'tags#check_hashtag'
|
||||
constraints(tag_id: /[^\/]+?/, format: /json|rss/) do
|
||||
get '/:tag_id.rss' => 'tags#tag_feed'
|
||||
get '/:tag_id' => 'tags#show', as: 'list_by_tag'
|
||||
get '/c/:category/:tag_id' => 'tags#show'
|
||||
get '/c/:parent_category/:category/:tag_id' => 'tags#show'
|
||||
get '/:tag_id' => 'tags#show', as: 'tag_show'
|
||||
get '/c/:category/:tag_id' => 'tags#show', as: 'tag_category_show'
|
||||
get '/c/:parent_category/:category/:tag_id' => 'tags#show', as: 'tag_parent_category_category_show'
|
||||
get '/:tag_id/notifications' => 'tags#notifications'
|
||||
put '/:tag_id/notifications' => 'tags#update_notifications'
|
||||
put '/:tag_id' => 'tags#update'
|
||||
delete '/:tag_id' => 'tags#destroy'
|
||||
|
||||
Discourse.filters.each do |filter|
|
||||
get "/:tag_id/l/#{filter}" => "tags#show_#{filter}"
|
||||
get "/c/:category/:tag_id/l/#{filter}" => "tags#show_#{filter}"
|
||||
get "/c/:parent_category/:category/:tag_id/l/#{filter}" => "tags#show_#{filter}"
|
||||
get "/:tag_id/l/#{filter}" => "tags#show_#{filter}", as: "tag_show_#{filter}"
|
||||
get "/c/:category/:tag_id/l/#{filter}" => "tags#show_#{filter}", as: "tag_category_show_#{filter}"
|
||||
get "/c/:parent_category/:category/:tag_id/l/#{filter}" => "tags#show_#{filter}", as: "tag_parent_category_category_show_#{filter}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue