v0.8 So close, but it doesn't work still...
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
 | 
			
		||||
# name: discourse-legacy_links
 | 
			
		||||
# about: A plugin to handle legacy Gossamer Forums URLs
 | 
			
		||||
# version: 0.7
 | 
			
		||||
# version: 0.8
 | 
			
		||||
# authors: saint@federated.computer
 | 
			
		||||
# url: https://gitea.federated.computer/saint/discourse-legacy_links.git
 | 
			
		||||
 | 
			
		||||
@@ -124,8 +124,6 @@ after_initialize do
 | 
			
		||||
    # Register custom routes to handle legacy URLs
 | 
			
		||||
    Discourse::Application.routes.append do
 | 
			
		||||
      get '/forum/*path' => 'discourse_legacy_links/custom_post#index'
 | 
			
		||||
    end
 | 
			
		||||
    Discourse::Application.routes.append do
 | 
			
		||||
      get '/forum' => 'discourse_legacy_links/custom_post#index'
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user