mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: do not preload topic list for new topic/message routes (#18959)
This commit fixes the issue where the sub-category topic list was not loading for new-topic routes. Since we do not need to preload topic lists for new topic/message routes this commit adds a no-op controller that prevents topic lists pre loading and at the same time fixes the sub category topics not loading issue.
This commit is contained in:
@ -838,8 +838,8 @@ Discourse::Application.routes.draw do
|
||||
get 'embed/count' => 'embed#count'
|
||||
get 'embed/info' => 'embed#info'
|
||||
|
||||
get "new-topic" => "list#latest"
|
||||
get "new-message" => "list#latest"
|
||||
get "new-topic" => "new_topic#index"
|
||||
get "new-message" => "new_topic#index"
|
||||
|
||||
# Topic routes
|
||||
get "t/id_for/:slug" => "topics#id_for_slug"
|
||||
|
Reference in New Issue
Block a user