Use ID instead of IRI in show/edit-URL

442 views Asked by At

I'm using Symfony with API Platform on a server for my REST API.
The client uses React-admin with the Hydra data provider.

My problem is that the pages for viewing or editing resources have a very ugly URL, because it uses the IRI instead of just the ID.

enter image description here

Instead of tags/%2Fapi%2Ftags%2F8/show, the path should be tags/8/show.
How do I accomplish that?

0

There are 0 answers