A platform for community discussion. Free, open, simple.
FIX: Permalink route matcher should always be last.
Guo Xiang Tana50cd8675a3c
diff --git a/config/routes.rb b/config/routes.rbindex 8765881d63d..1ee17cc3e1b 100644--- a/config/routes.rb+++ b/config/routes.rb@@ -803,9 +803,9 @@ Discourse::Application.routes.draw doget "/qunit" => "qunit#index"end- get "*url", to: 'permalinks#show', constraints: PermalinkConstraint.new-post "/push_notifications/subscribe" => "push_notification#subscribe"post "/push_notifications/unsubscribe" => "push_notification#unsubscribe"+ get "*url", to: 'permalinks#show', constraints: PermalinkConstraint.new+end