Add rel attributes: "sponsored" and "ugc"

Created on 18 March 2020, over 4 years ago
Updated 27 June 2024, 2 months ago

Hi, Google guidelines suggest defining the type of link using the "rel" attribute. The value of this attribute can be:

  • sponsored: mark the link as advertisement or paid link.
  • ugc: mark the link as user generated content.
  • nofollow: when other attributes does not apply and you don't want Google associate your site with the linked one.
  • multiple values: multiple rel values can be specified as space or comma separated list.

Currently the link module only allows to add the "nofollow" attribute at display level.

Why not put the setting on the content creation form? It could be something like:

What do you think about?

For more information look at the page: https://support.google.com/webmasters/answer/96569?hl=en

Feature request
Status

Active

Version

11.0 🔥

Component
Link 

Last updated 3 days ago

Created by

🇮🇹Italy FiNeX

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany Anybody Porta Westfalica

    Nice, I just found the same and I think this important and super helpful for text filters, instead of the current "nofollow" checkbox!
    Especially for comments (and the filtered_html / basic_html input filter) this makes a lot of sense.

    Make sure that all external links that are tagged with the rel="nofollow" attribute really have to be tagged with this attribute. Google recommends using the rel="sponsored" attribute for sponsored links and the rel="ugc" attribute for user-generated content in links (e.g. comments). The rel="nofollow" attribute makes it clear to search engines that you do not want to link your page to the website to which you want to create a link.

    So clear +1, not only for link.module but also and especially for text filters!

Production build 0.71.5 2024