lansingcodes / www

Events and resources for Lansing coders
https://www.lansing.codes
Other
7 stars 16 forks source link

Prevent linked websites from tracking clicks #149

Closed egillespie closed 2 years ago

egillespie commented 2 years ago

Describe the bug

From the Chrome Lighthouse best practices audit:

image

The links in the footer of the website do not prevent websites such as Heroku, GitHub, Facebook, and Twitter from tracking how visitors arrived at their websites.

To Reproduce

  1. Open https://lansing.codes in a new Chrome Incognito window
  2. Open Chrome DevTools
  3. Select the Lighthouse tab
  4. Check "Best Practices" and "Desktop"
  5. Run the audit

Expected behavior

Each a element in the footer that links to an external website should use the rel="noreferrer" attribute to prevent click-tracking.

See MDN's noreferrer documentation for more information.

After the fixes are applied, the Lighthouse audit should not red-flag this issue.