Skip to content

Commit

Permalink
Do not use 'rel="tag"' attribute on the keywords viewlet
Browse files Browse the repository at this point in the history
The referenced document is not a tag definition but a search result.

Refs. https://www.w3.org/TR/2011/WD-html5-20110113/links.html#link-type-tag
  • Loading branch information
hvelarde committed Apr 18, 2018
1 parent d52d11b commit 24f726d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ New features:

Bug fixes:

- *add item here*
- Do not use ``rel="tag"`` attribute on the keywords viewlet as the referenced document is not a tag definition but a search result;
use ``rel="nofollow"`` instead to avoid search crawlers hammering our sites backend.
[hvelarde]


2.3.17 (2017-01-17)
Expand Down
2 changes: 1 addition & 1 deletion plone/app/layout/viewlets/keywords.pt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span tal:repeat="category categories">
<a href=""
class="link-category"
rel="tag"
rel="nofollow"
tal:content="category"
tal:define="quotedCat python:url_quote(category)"
tal:attributes="href string:${context/@@plone_portal_state/navigation_root_url}/@@search?Subject%3Alist=${quotedCat}">
Expand Down

0 comments on commit 24f726d

Please sign in to comment.