Prefetching other locales' .json-files with wrong url
Unanswered
Baldfaced hornet posted this in #help-forum
Baldfaced hornetOP
Good morning, you all.
When I run my nextjs-application (v13.4.x, pages-router) and enter any page on the default locale which is served like foo.com/bar (Danish language), then it tries to prefetch /da/en.json, which causes an error 500 - as it expected /en.json instead.
When I enter the other locale, the content of the Danish .json-file is prefetched correctly
Does anyone know how to fix this?
When I run my nextjs-application (v13.4.x, pages-router) and enter any page on the default locale which is served like foo.com/bar (Danish language), then it tries to prefetch /da/en.json, which causes an error 500 - as it expected /en.json instead.
When I enter the other locale, the content of the Danish .json-file is prefetched correctly
Does anyone know how to fix this?
1 Reply
Baldfaced hornetOP