Modify child page's url


I’m not sure about terms to find that kind of topic, I’m looking for a way to remove the parent in the child page URL.

To make a cleaner panel to my clients, I made three parent pages that are primary, secondary & shop which all have child items that are displayed the same level. I thought it would be lighter on the kirby to nest it in three parent pages.

Problem is that I do not want to have url/primary/page but url/page.

Is there a way to change the root url directly in the config for example ? Or do you think I can do it in another logic ?


You should be able to do that with a custom route.

I confused root and route… Thank you!