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
If I hard refresh the page (with the same url /fr/mentions-legales) it works.
import{defineRouting}from'next-intl/routing'exportconstrouting=defineRouting({// A list of all locales that are supportedlocales: ['en','fr'],// Used when no locale matchesdefaultLocale: 'en',localeDetection: true,pathnames: {'/': '/','/legal-mentions': {en: '/legal-mentions',fr: '/mentions-legales',},'/[category_slug_plural]/[post_type]': {en: '/[category_slug_plural]/[post_type]',fr: '/[category_slug_plural]/[post_type]',},},})
Verifications
I've verified that the problem I'm experiencing isn't covered in the docs.
Description
I'm on this page : /en/legal-mentions
When I switch the lang and navigate to /fr/mentions-legales
usePathname is returning another route (/[category_slug_plural]/[post_type] instead of /legal-mentions) :
If I hard refresh the page (with the same url /fr/mentions-legales) it works.
Verifications
Mandatory reproduction URL
https://expert-happiness-vxjqg54x6fxjvx.github.dev/
Reproduction description
Steps to reproduce:
Expected behaviour
it should return legal-mentions instead of /[category_slug_plural]/[post_type]
The text was updated successfully, but these errors were encountered: