0.41 Tweaks to see if we can get this stable.

This commit is contained in:
David Sainty 2024-09-09 09:56:19 +10:00
parent 03440aeb0c
commit e7d6d2d877

View File

@ -4,7 +4,7 @@
# name: discourse-legacy_links # name: discourse-legacy_links
# about: A plugin to handle legacy Gossamer Forums URLs # about: A plugin to handle legacy Gossamer Forums URLs
# version: 0.40 # version: 0.41
# authors: saint@federated.computer # authors: saint@federated.computer
# url: https://gitea.federated.computer/saint/discourse-legacy_links.git # 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 # Define the custom controller, inheriting from Discourse's CustomPostController
# This gives us access to post-related functionality and user authentication # This gives us access to post-related functionality and user authentication
# class DiscourseLegacyLinks::CustomPostController < ::ApplicationController # class DiscourseLegacyLinks::CustomPostController < ::ApplicationController
# class LegacyLinksController::CustomPostController < ::ApplicationController class LegacyLinksController::CustomPostController < ::ApplicationController
class LegacyLinksController < ::ApplicationController::CustomPostController # class LegacyLinksController < ::ApplicationController::CustomPostController
# layout false # layout false
@ -163,13 +163,14 @@ after_initialize do
# get '/forum/*path' => 'discourse_legacy_links/custom_post#index' # get '/forum/*path' => 'discourse_legacy_links/custom_post#index'
# get '/forum' => 'discourse_legacy_links/custom_post#index' # get '/forum' => 'discourse_legacy_links/custom_post#index'
# Register custom routes to handle legacy URLs # # Register custom routes to handle legacy URLs
DiscourseLegacyLinks::Engine.routes.draw do # DiscourseLegacyLinks::Engine.routes.draw do
get "/forum2" => "legacy_links#index2" # get "/forum2" => "legacy_links#index2"
end # end
Discourse::Application.routes.append do # Discourse::Application.routes.append do
mount ::DiscourseLegacyLinks::Engine, at: "/" # mount ::DiscourseLegacyLinks::Engine, at: "/"
end # end
end end