silverstripe-admin icon indicating copy to clipboard operation
silverstripe-admin copied to clipboard

Remove CMSMenu controller routing rule when the controller is removed.

Open sabina-talipova opened this issue 1 year ago • 0 comments

Description

When CMSMenu::add_controller() is called a director rule is added, but it won't be removed when the controller is removed. We should implement a way to remove the routing rule when the controller is removed.

See: https://github.com/silverstripe/silverstripe-admin/blob/0f18b3d40972d421f2756b6b90b55283dfc6fea2/code/CMSMenu.php#L73

sabina-talipova avatar Oct 16 '23 23:10 sabina-talipova