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
I have some SSR routes that use getServerData to fetch some data, for example src/pages/products/[slug].tsx
These pages work correctly for the default language but for other language they contain the language twice, for example the component mentioned above becomes: /fr/fr/products/:slug
The expected behaviour would be for the page to be reachable at /fr/products/:slug, but it is not happening because this line of code duplicates the language:
I have some SSR routes that use
getServerData
to fetch some data, for example src/pages/products/[slug].tsxThese pages work correctly for the default language but for other language they contain the language twice, for example the component mentioned above becomes: /fr/fr/products/:slug
The expected behaviour would be for the page to be reachable at /fr/products/:slug, but it is not happening because this line of code duplicates the language:
gatsby-plugin-react-i18next/src/plugin/onCreatePage.ts
Line 109 in 2b7b55b
Removing the entire
if
condition fixes the issue.The text was updated successfully, but these errors were encountered: