How can I define a page as non routable

Hi, when developing my menu, I want to define a page, that contains other pages, as non routable, so that its title appears in the menu bar, but it can not be accessed by the user. I’ve set the routable field to false, but it continues being routable, and appears the 404 not found error page. How can I fix it? Thanks!

You just need to update your menu twig code to not even link a page that is non-routable.

So which twig code I have to update? I don’t know what you mean with menu twig.

All output is controlled by a theme, so it depends on the theme you are using?