Cockpit-HQ / Cockpit

Cockpit Core - Content Platform
https://getcockpit.com
Other
388 stars 47 forks source link

[Feature] Root slug #189

Closed pozylon closed 6 months ago

pozylon commented 6 months ago

Problem: When using the slugs in "Pages" of Cockpit Pro, we always have to define a "home" page and add workarounds in the frontend to map / to /home because it's currently not possible to have an empty slug or a root slug.

Suggestion: Have some checkbox next to slug field "root page" or equivalent solution that allows storing the page's slug as empty string.

aheinze commented 6 months ago

you can always query for the root page by /api/pages/page?route=/.

The root page is always the first page in the site tree