This is not a bug but a feature request.
In https://github.com/craftcms/cms/issues/4520 we got to know that URIs were reintroduced for headless mode. Which is great.
It would be really nice though, if the user could decide if he wants to have a leading slash for the URIs or not.
In my case I get all the entries and the uris via graphql and it would be nice for my vue app route generation that they already had a leading slash:
e.g. /de/{parent.slug}/{slug}
instead of being stripped to
de/{parent.slug}/{slug}.

At that point it鈥檚 a (root-relative) URL, not just a URI. So just set your site鈥檚 base URL to / and then fetch the entry鈥檚 URL (url) instead of its URI.
Hm. I tried doing that.
But my graphql service would not provide an option to fetch the entry's url:

Just the uri.
Could you give me a pointer what I am missing here?
Maybe we need to add support for url :)
That would be lovely! 馃憤
@Jones-S as of next release, you'll be able to use url on entry elements via GraphQL!
Most helpful comment
@Jones-S as of next release, you'll be able to use
urlon entry elements via GraphQL!