mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Use new tag routes (#8683)
Commit 1fb7a62 added unambiguous routes for tags. This commit ensures
that the new routes are used.
This commit is contained in:
@@ -2587,7 +2587,7 @@ en:
|
||||
|
||||
- Upgrade using our easy **[one-click browser upgrade](%{base_url}/admin/upgrade)**
|
||||
|
||||
- See what's new in the [release notes](https://meta.discourse.org/tags/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/master)
|
||||
- See what's new in the [release notes](https://meta.discourse.org/tag/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/master)
|
||||
|
||||
- Visit [meta.discourse.org](https://meta.discourse.org) for news, discussion, and support for Discourse
|
||||
|
||||
@@ -2602,7 +2602,7 @@ en:
|
||||
|
||||
- Upgrade using our easy **[one-click browser upgrade](%{base_url}/admin/upgrade)**
|
||||
|
||||
- See what's new in the [release notes](https://meta.discourse.org/tags/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/master)
|
||||
- See what's new in the [release notes](https://meta.discourse.org/tag/release-notes) or view the [raw GitHub changelog](https://github.com/discourse/discourse/commits/master)
|
||||
|
||||
- Visit [meta.discourse.org](https://meta.discourse.org) for news, discussion, and support for Discourse
|
||||
|
||||
|
||||
@@ -847,7 +847,7 @@ Discourse::Application.routes.draw do
|
||||
|
||||
scope '/tag/:tag_id' do
|
||||
constraints format: :json do
|
||||
get '/' => 'tags#show'
|
||||
get '/' => 'tags#show', as: 'tag_show'
|
||||
get '/info' => 'tags#info'
|
||||
get '/notifications' => 'tags#notifications'
|
||||
put '/notifications' => 'tags#update_notifications'
|
||||
@@ -857,7 +857,7 @@ Discourse::Application.routes.draw do
|
||||
delete '/synonyms/:synonym_id' => 'tags#destroy_synonym'
|
||||
|
||||
Discourse.filters.each do |filter|
|
||||
get "/l/#{filter}" => "tags#show_#{filter}"
|
||||
get "/l/#{filter}" => "tags#show_#{filter}", as: "tag_show_#{filter}"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -897,7 +897,7 @@ Discourse::Application.routes.draw do
|
||||
# legacy routes
|
||||
constraints(tag_id: /[^\/]+?/, format: /json|rss/) do
|
||||
get '/:tag_id.rss' => 'tags#tag_feed'
|
||||
get '/:tag_id' => 'tags#show', as: 'tag_show'
|
||||
get '/:tag_id' => 'tags#show'
|
||||
get '/:tag_id/info' => 'tags#info'
|
||||
get '/:tag_id/notifications' => 'tags#notifications'
|
||||
put '/:tag_id/notifications' => 'tags#update_notifications'
|
||||
@@ -907,7 +907,7 @@ Discourse::Application.routes.draw do
|
||||
delete '/:tag_id/synonyms/:synonym_id' => 'tags#destroy_synonym'
|
||||
|
||||
Discourse.filters.each do |filter|
|
||||
get "/:tag_id/l/#{filter}" => "tags#show_#{filter}", as: "tag_show_#{filter}"
|
||||
get "/:tag_id/l/#{filter}" => "tags#show_#{filter}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user