This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
All the links with target _blank in the assessments results should inform users the link opens in a new tab #2131
Open
Description
In the assessment results, most (all?) of the results contain links:
These links use target="_blank"
but don't use any text to inform users the link is going to open in new browser's tab. Additionally, links that don't point to yoast.com (if any) should use rel="noopener"
.
Re: the first part, we have PHP utilities (in Yoast SEO) and JS utilities (in yoast-components) to generate the visually hidden text (Opens in a new browser tab)
. Suggested: add a function to Shortlinker
to generate the text and closing </a>
tag and replace the hardcoded </a>
across the codebase.