mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 11:55:48 +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:
parent
698c3ced15
commit
8b8c1291e7
5
app/controllers/new_topic_controller.rb
Normal file
5
app/controllers/new_topic_controller.rb
Normal file
@ -0,0 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class NewTopicController < ApplicationController
|
||||
def index; end
|
||||
end
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user