You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Next.js 15.1 the Link header with hreflang links is not set, it seems to be removed or overridden.
I provided a minimum reproducible example which contains a freshly installed Next app (create-next-app) with the basic setup of next-intl (start dev server). Alternatively you can use the example-app-router and just bump the Next.js version to 15.1.
Open home page and inspect document request headers
Expected behaviour
I expect the link header to be properly set in the default setup (as it is described in the docs and works for Next.js 14). As the peer dependencies include Next.js 15, I consider this as a bug.
The text was updated successfully, but these errors were encountered:
I see this is already opened as an issue in the nextjs repo: vercel/next.js#69000 and there's already a PR provided, waiting to be merged: vercel/next.js#73431.
I leave this open for now for other people as reference :) thanks!
Description
In Next.js 15.1 the Link header with hreflang links is not set, it seems to be removed or overridden.
I provided a minimum reproducible example which contains a freshly installed Next app (create-next-app) with the basic setup of next-intl (start dev server). Alternatively you can use the example-app-router and just bump the Next.js version to 15.1.
Link headers in dev server before:
Link headers in Next.js 15.1:
Verifications
Mandatory reproduction URL
https://github.com/tobiashaefermann/next-intl-link-header-bug
Reproduction description
Steps to reproduce:
Expected behaviour
I expect the link header to be properly set in the default setup (as it is described in the docs and works for Next.js 14). As the peer dependencies include Next.js 15, I consider this as a bug.
The text was updated successfully, but these errors were encountered: