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
but as the leading slash was removed it became relative and only the English app worked. The Norwegian app would try to find the API at https://localhost/nb/api . To fix the issue I had to add:
Information
Current documentation for the property
trailingSlashEndpoints?: boolean
is:but should be
How I noticed this?
My app API is at:
My app has different URLs for each language:
etc.
Using ngrx/data, this configuration should work for all languages:
but as the leading slash was removed it became relative and only the English app worked. The Norwegian app would try to find the API at https://localhost/nb/api . To fix the issue I had to add:
I was using version 14.3.2.
Code file reference
The code file that removes the slashes:
platform/modules/data/src/dataservices/http-url-generator.ts
Line 142 in 80fa173
Documentation page
https://ngrx.io/api/data/DefaultDataServiceConfig
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: