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