Skip to content

A platform for community discussion. Free, open, simple.

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

Dan Ungureanu0c2956dd2e28
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