FIX: tags shouldn't be listed as breadcrumbs in web crawler view
This commit is contained in:
parent
2dec731da3
commit
9ec000407f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue