Make sure the server API serializers generate web UI URLs for all IDs they return
Many do it, but at least the recent ones I made don't, and should.
This would avoid the client generating URLs as we do now.
https://en.wikipedia.org/wiki/HATEOAS can be a way to do it, and responses could provide both API URLs and web UI URLs
Edited by Enrico Zini