We have a model called Page which can be used to created nested pages:
- one
-- two
--- three
On the frontend, this results in a URI like /one/two/three
. Is there a way to query for a model using the full URI/nested slug? If not, how would we fetch three
from the CMS based only on the URI? Assuming the depth could be anywhere between 1-6 and there could be multiple pages with a matching slug at different depths.
E.g. /one/two/three
and /example/three