From e7d6d2d877ea14ca69f45fddcc8f55dc153c24bb Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 9 Sep 2024 09:56:19 +1000 Subject: [PATCH] 0.41 Tweaks to see if we can get this stable. --- plugin.rb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/plugin.rb b/plugin.rb index 4bbe9c9..b1c0e3a 100644 --- a/plugin.rb +++ b/plugin.rb @@ -4,7 +4,7 @@ # name: discourse-legacy_links # about: A plugin to handle legacy Gossamer Forums URLs -# version: 0.40 +# version: 0.41 # authors: saint@federated.computer # url: https://gitea.federated.computer/saint/discourse-legacy_links.git @@ -26,8 +26,8 @@ after_initialize do # Define the custom controller, inheriting from Discourse's CustomPostController # This gives us access to post-related functionality and user authentication # class DiscourseLegacyLinks::CustomPostController < ::ApplicationController -# class LegacyLinksController::CustomPostController < ::ApplicationController - class LegacyLinksController < ::ApplicationController::CustomPostController + class LegacyLinksController::CustomPostController < ::ApplicationController +# class LegacyLinksController < ::ApplicationController::CustomPostController # layout false @@ -163,13 +163,14 @@ after_initialize do # get '/forum/*path' => 'discourse_legacy_links/custom_post#index' # get '/forum' => 'discourse_legacy_links/custom_post#index' - # Register custom routes to handle legacy URLs - DiscourseLegacyLinks::Engine.routes.draw do - get "/forum2" => "legacy_links#index2" - end +# # Register custom routes to handle legacy URLs +# DiscourseLegacyLinks::Engine.routes.draw do +# get "/forum2" => "legacy_links#index2" +# end + +# Discourse::Application.routes.append do +# mount ::DiscourseLegacyLinks::Engine, at: "/" +# end - Discourse::Application.routes.append do - mount ::DiscourseLegacyLinks::Engine, at: "/" - end end