Compare commits

...

2 Commits

Author SHA1 Message Date
89e0b0a081 v0.15 So close, but it doesn't work still... 2024-09-07 14:58:40 +10:00
8dfae46151 v0.15 So close, but it doesn't work still... 2024-09-07 14:58:37 +10:00

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.14 # version: 0.15
# 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
@ -129,7 +129,7 @@ after_initialize do
# Register custom routes to handle legacy URLs # Register custom routes to handle legacy URLs
Rails.logger.warn "[DEBUG DEBUG DEBUG DEBUG DEBUG WOW WOW WOW]" Rails.logger.warn "[DEBUG DEBUG DEBUG DEBUG DEBUG WOW WOW WOW]"
# Discourse::Application.routes.append do # Discourse::Application.routes.append do
Discourse::Application.routes.append do Discourse::Application.routes.prepend do
get '/test_route' => 'discourse_legacy_links/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'