nuxt / nuxt.com

The Nuxt website, made with Nuxt.
https://nuxt.com
MIT License
291 stars 143 forks source link

fix: add rel to props from prose a #1491

Open Barbapapazes opened 7 months ago

Barbapapazes commented 7 months ago

Hello,

Actually, every external links have rel="nofollow" which is far from ideal in terms of SEO and security.

Also, it's impossible to customize the rel for a specific link since remark-mdc automatically add rel="nofollow". This plugin should not be opinitated about links (https://github.com/nuxtlabs/remark-mdc/issues/71).

This PR add rel to ProseA props to restore default NuxtLink behavior. This is a temporary mitigation since the remark-mdc issue should be solved.

In the same time, I'm asking for a whitlist of website, https://github.com/nuxt/nuxt/issues/25466, to help to remove the noreferrer from some links. I think that the noopener noreferrer is not correctly used in NuxtLink.

https://stackoverflow.com/questions/50773152/when-should-i-use-rel-noreferrer