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
The og:image link is incorrectly generated when using language prefixes from the next-intl package. For Spanish (/es), the link is formed as /es/opengraph-image, but it should be /spain/opengraph-image. This causes a 404 error when the link is accessed.
Verifications
I've verified that the problem I'm experiencing isn't covered in the docs.
Thanks for noticing! I've adapted the example in #1658 to work correctly and have also added a paragraph to the docs about this case. Let me know if this helps!
Description
The og:image link is incorrectly generated when using language prefixes from the next-intl package. For Spanish (/es), the link is formed as /es/opengraph-image, but it should be /spain/opengraph-image. This causes a 404 error when the link is accessed.
Verifications
Mandatory reproduction URL
https://github.com/amannn/next-intl/tree/main/examples/example-app-router-playground
Reproduction description
Steps to Reproduce:
Actual Behavior:
For Spanish, the link to og image /es/opengraph-image when opened redirects to /spain/es/opengraph-image, resulting in a 404 error.
Examples:
Default language (working) :
Spanish Language (not working):
Expected behaviour
For Spanish, link to opengraph-image should be /spain/opengraph-image
Example for correct link /spain/opengraph-image
The text was updated successfully, but these errors were encountered: