mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: tags shouldn't be listed as breadcrumbs in web crawler view
This commit is contained in:
@@ -15,13 +15,6 @@ module TopicsHelper
|
|||||||
breadcrumb.push url: category.url, name: category.name
|
breadcrumb.push url: category.url, name: category.name
|
||||||
end
|
end
|
||||||
|
|
||||||
if SiteSetting.tagging_enabled && (tags = topic.tags).present?
|
|
||||||
tags.each do |tag|
|
|
||||||
url = "#{Discourse.base_url}/tags/#{tag.name}"
|
|
||||||
breadcrumb << {url: url, name: tag.name}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
Plugin::Filter.apply(:topic_categories_breadcrumb, topic, breadcrumb)
|
Plugin::Filter.apply(:topic_categories_breadcrumb, topic, breadcrumb)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user