I am trying to access Sitecore 10.1 item via layout services and it is working fine with GUID and full path. But when I am trying to access it via a relative path from the current app, it is not working. like https://cm.myproject.localhost/sitecore/api/layout/render/jss?sc_site=MyProject&sc_apikey=06d43b65-6732-46b2-becd-ce047675df71&item=/CustomHome&sc_lang=en
.
However, it is working fine with this full item path like https://cm.myproject.localhost/sitecore/api/layout/render/jss?sc_site=MyProject&sc_apikey=06d43b65-6732-46b2-becd-ce047675df71&item=/sitecore/content/MyProject/CustomHome&sc_lang=en
/CustomHome
. But based on the full pathitem=/sitecore/content/MyProject/CustomHome
, it look like this item is a site start item which will be accessible by/
only. If I am wrong with my assumption, just add more details which item is a start item (let's say home) for your site, and whose other items you can't access