Admin component: when api has a prefix, then iris from entities leads to 404 because it adds the prefix to the iris whereas it's useless · Issue #584 · api-platform/api-platform · GitHub
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
{{ message }}
Repository navigation
Admin component: when api has a prefix, then iris from entities leads to 404 because it adds the prefix to the iris whereas it's useless #584
But now when i open a browser on the admin component, then it tries to open that kind of uri /api/api/oneEntity/:id instead of /api/oneEntity/:id. This is because the API return /api/oneEntity/:id and the admin component add the entrypoint...
If i don't set the valid entrypoint, then the admin component cannot discover the API, so i have a problem.
Activity
admin on react is now running again ! but it fails to work finely bec…
Rebolon commentedon Feb 23, 2018
For instance i solved this with a replace but i'm not really happy with this:
Simperfit commentedon Apr 9, 2018
Do you still have an issue ?
Rebolon commentedon Apr 9, 2018
@Simperfit which version should fix this ?
Simperfit commentedon Apr 9, 2018
The lastest version still contains this bug ?
Rebolon commentedon Apr 9, 2018
i will check soon
Rebolon commentedon Apr 10, 2018
Nope i have the same results.
Here is the root url: localhost:85/demo/my-admin-react
Here is the stack of api call:
And then all 404 http errors for next calls:
Look at the /api/api in those uris
benjvfr commentedon Jun 27, 2018
Hello, same problem here with latest version of API Platform and the React Admin Component.
I have my Symfony 4.1.1 with API Platform on https://hello.local/api (entrypoint) and the react admin on localhost:3000.
For the entrypoint I have :
export default () => <HydraAdmin entrypoint="https://hello.local/api"/>;It works on initialisation, but when I want to edit an entity, it fetch 'https://hello.local/api/api/myentity/1".
Do you have a solution to fix that ?
Thanks.
bricejulia commentedon Jul 25, 2018
For those who might be interested, an updated version of the hotfix could be:
admin on react is now running again ! but it fails to work finely bec…