Skip to content

A platform for community discussion. Free, open, simple.

FIX: do not preload topic list for new topic/message routes (#18959)

Arpit Jalan8b8c1291e78b
diff --git a/app/controllers/new_topic_controller.rb b/app/controllers/new_topic_controller.rb
new file mode 100644
index 00000000000..f6b90176661
--- /dev/null
+++ b/app/controllers/new_topic_controller.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+class NewTopicController < ApplicationController
+ def index; end
+end
diff --git a/config/routes.rb b/config/routes.rb
index 27d7f27b6ef..22e73895078 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -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"