Hey there, so I noticed that the rate pages are being indexed by Google, we need to have this disabled by default or have an option to maybe enable it in case of need
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | rate-nofollow-3113003-9.patch | 20.02 KB | lamp5 |
| #2 | rate-nofollow-3113003-2.patch | 17.38 KB | lamp5 |
| Screenshot 2020-02-12 at 11.59.35.png | 74.84 KB | doxigo |
Comments
Comment #2
lamp5I refactored widgets templates, added rel="nofollow" to the links, also unused destination parameter was removed from route parameters.
Comment #3
doxigo commentedThanks for an amazing fast patch, but unfortunately it doesn't respect the twig
{{ content.rate_vote_widget }}and the widget is completely missing nowPossible related error:
User error: "rel" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).Comment #4
lamp5Did you clear cache after applied patch?
Comment #5
doxigo commentedYes, I just noticed it, probably my bad, but it broke the HTML structure, here's the output I get now:
<a href="<a href=" rate="" node="" 80481="" updown="" 1="" thumbs_up"="" class="rate-thumbs-up-btn-up use-ajax" rel="nofollow">Opp</a>, the href is repeated twice but `rel` is thereComment #6
doxigo commentedOkay ignore my last comment, seems like it was overriden by a template file in the theme itself, works great.. thanks
Comment #8
krzysztof domańskiThere is a problem when rate does not use AJAX. We get into an infinite redirect loop
ERR_TOO_MANY_REDIRECTS.Steps to reproduce issue
Uncheck "Use AJAX" checkbox at /admin/config/search/votingapi/rate.
Try to vote and unvote for any entity.
Comment #9
lamp5Comment #10
ivnishNeeds reroll to MR
Comment #11
ivnishI this still relevant?
Comment #12
doxigo commentedI assume not.
Comment #13
ivnish