ericwbailey / a11y-webring.club

🌐 A webring for digital accessibility practitioners.
https://a11y-webring.club/
MIT License
35 stars 86 forks source link

Document the need for a referrer header #52

Closed Seirdy closed 1 year ago

Seirdy commented 1 year ago

Your issue

This webring seems to require the use of the HTTP referer (sic) header. However, personal sites that don't monetize data or use analytics often drop referrers with a Referrer-Policy: no-referrer response header. A workaround is to override this with a referrerpolicy attribute on anchor elements, as I do in my webring template.

Documenting this could avoid future headaches as people wonder why their webring links don't work.

Code of conduct

ericwbailey commented 1 year ago

Oh, interesting! So, something like:

<a href="https://a11y-webring.club/prev" rel="previous external" referrerpolicy="strict-origin">
  Previous website
</a>
Seirdy commented 1 year ago

Yes, but I'd probably drop the rel-prev since that's more appropriate for pagination, e.g. for combining pages in reader-mode.

-- Seirdy (https://seirdy.one)

ericwbailey commented 1 year ago

Closing via https://github.com/ericwbailey/a11y-webring.club/pull/75. Thank you for the guidance here, it's really appreciated!