I am trying to achieve something similar to the Pathless Layout Routes in the docs but for the index route.
I have 2 routes:
_index // I’m using this to get my site specific data and return html for the header, navigation and an outlet for the page content.
_index.($slug) // Depending on the optional slug, this is meant to get and display the page specific content in the outlet.
However I’m getting: Error: Index routes must not have child routes. Please remove all child routes from route path "/".
I’ve structured routing for other parts of the site in a similar fashion without a problem. Any ideas welcomed.