From 8dfae46151b3e4beb4e6eec1b5a4055c1556af2a Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Sep 2024 14:58:37 +1000 Subject: [PATCH] v0.15 So close, but it doesn't work still... --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 013e760..7c84dac 100644 --- a/plugin.rb +++ b/plugin.rb @@ -129,7 +129,7 @@ after_initialize do # Register custom routes to handle legacy URLs Rails.logger.warn "[DEBUG DEBUG DEBUG DEBUG DEBUG WOW WOW WOW]" # Discourse::Application.routes.append do - Discourse::Application.routes.append do + Discourse::Application.routes.prepend do get '/test_route' => 'discourse_legacy_links/custom_post#test' get '/forum/*path' => 'discourse_legacy_links/custom_post#index' get '/forum' => 'discourse_legacy_links/custom_post#index'