Remove parent page slug from dialog

I’ve removed the parent page slug /posts/ from the URL as described here via routing.

Now the problem is that in the create new dialog and also in the change title or change slug dialog, the wrong slug still appears.

Is there a way to remove /posts/ from the url?

I’ve tried with page model but had no success.

I think you have to overwrite the dialog to change this.

How could this be done? Would the entire dialog needed to be reimplemented?

I’ve found the relevant code in v4 in PageCreateDialog.php.

But there seems to be a different dialog for changing the title / slug once the page is already created.

Right,the PageCreateDialog is used in dialogs.php, which is part of the area. You can extend areas (and their dialogs), with the Panel area extension, see Panel areas | Kirby CMS. Should work similar in K4.

Example implementation in the Custom Add Fields plugin: Custom Add Fields | Kirby CMS

Thanks for the answer @texnixe. Seems like I need to work myself into Kirby plugin development…