HACK: Redirect /tags/:tag_id to /tag/:tag_id (#11145)

This commit is contained in:
Dan Ungureanu 2020-11-09 19:01:33 +02:00 committed by GitHub
parent ec4c2a58ea
commit 0c2956dd2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -921,6 +921,8 @@ Discourse::Application.routes.draw do
get '/intersection/:tag_id/*additional_tag_ids' => 'tags#show', as: 'tag_intersection'
end
get '*tag_id', to: redirect(relative_url_root + 'tag/%{tag_id}')
end
resources :tag_groups, constraints: StaffConstraint.new, except: [:edit] do