v0.10 So close, but it doesn't work still...

This commit is contained in:
David Sainty 2024-09-07 02:25:08 +10:00
parent f030266fc2
commit 28adc2940d

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.9 # version: 0.10
# 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
@ -128,7 +128,7 @@ after_initialize do
# Register custom routes to handle legacy URLs # Register custom routes to handle legacy URLs
Discourse::Application.routes.append do Discourse::Application.routes.append do
get '/test_route' => 'custom_post#test' get '/test_route' => 'discourse_legacy_links/custom_post#test'
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'
end end