From 0c2956dd2e2821cd9ce350a157548d4b99cae81c Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Mon, 9 Nov 2020 19:01:33 +0200 Subject: [PATCH] HACK: Redirect /tags/:tag_id to /tag/:tag_id (#11145) --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index c06c1cd3e33..6787eb30528 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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