opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
22 stars 0 forks source link

Paraglide-Next - Better Headers for SEO #124

Closed LorisSigrist closed 1 month ago

LorisSigrist commented 1 month ago

Context

paraglide-next uses the Link header to tell search-engines about alternate versions of the page. However, depending on the Routing Strategy this doesn't always work.

Proposal

If the same URL is generated in multiple languages don't generate Link headers & instead set the Vary header correctly.

If only one language is available generate neither