Commit 56995e9d62d62941dce5725c4bec125c5f54346c
1 parent
b9914175
Exists in
master
and in
29 other branches
ActionItem955: discourage robots to follow language change links
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/language_helper.rb
| ... | ... | @@ -26,7 +26,7 @@ module LanguageHelper |
| 26 | 26 | if code == current |
| 27 | 27 | content_tag('strong', name) |
| 28 | 28 | else |
| 29 | - link_to(name, params.merge(:lang => code)) | |
| 29 | + link_to(name, params.merge(:lang => code), :rel => 'nofollow') | |
| 30 | 30 | end |
| 31 | 31 | end.join(' — ') |
| 32 | 32 | content_tag('div', languages, :id => 'language-chooser', :help => _('The language you choose here is the language used for options, buttons, etc. It does not affect the language of the content created by other users.')) | ... | ... |