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 configured Endpoints in nuxt.config.ts are not used when calling a page and the api returns 404 for that page.
So basically the function (getInitialDataPath) returns only "/" and therefore also without any query parameter. So the initialData on an 404 error page is always the content from https://api.example.com/.
I would expect, that if the initialDataFallback is used (for example here: /de/xxxxxxxxxxxxxxxxxxxxxx), then I get initial data from from the fallback URL not from the page without any type parameter (homepage)
Hope I was able to explain the problem.
The text was updated successfully, but these errors were encountered:
/src/runtime/middleware/initialData.ts
The configured Endpoints in
nuxt.config.ts
are not used when calling a page and the api returns 404 for that page.So basically the function (getInitialDataPath) returns only "/" and therefore also without any query parameter. So the initialData on an 404 error page is always the content from https://api.example.com/.
nuxt.config.ts:
I would expect, that if the initialDataFallback is used (for example here: /de/xxxxxxxxxxxxxxxxxxxxxx), then I get initial data from from the fallback URL not from the page without any type parameter (homepage)
Hope I was able to explain the problem.
The text was updated successfully, but these errors were encountered: