0.41 Tweaks to see if we can get this stable.
This commit is contained in:
parent
03440aeb0c
commit
e7d6d2d877
21
plugin.rb
21
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user