Disable public URL for pages

Ok, I understand your point and it’s fair.

I think the only built in way in Kirby would be to leave the content container as a draft.
That should trigger a 404. But I’m not sure your site hierarchy/templates allow for that.
As soon as it’s unlisted/listed it’s a page and has a public url.

  • We would need to repeat that redirect logic for every type of category we create, and not every category (or other type of generic content container) can be redirected to something.

You could keep the controller general and always redirect to the parent or home page. But again, I don’t know your whole site.

  • It feels like a workaround or hack – the system still thinks that an URL for the page exists. For example, the edit form still shows the Open link for the news category – if this leads to a 404 page or redirects to something else, it’s not great UX for editors working with the panel.

You can disable/remove the preview button as well.

Do you need the content containers in your full url? Or is it just to structure your site? You could also remove the content container url with a route…