I am using this hook "hook_menu_links_discovered_alter" in my module file to add links to my existing custom menu. The feature is working fine but the issue starts coming if I will change these menu ordering or do any modification manually through admin panel. And after these modification, If I am uninstalling my module and then after that opening my custom menu through browser its throws below error. And even after clearing cache the error is not stopping. The only solution to this problem, I found is again install the old module and do the reset of these menu's and after that uninstall the module which would solve the issue.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "my_module.links_custom_menu" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of /web/core/lib/Drupal/Core/Routing/RouteProvider.php).
Comments
Comment #2
abhaypai commentedThanks for reporting.
Will need steps to reproduce.
Also changing the priority to Normal and status to Postponed until reporter adds more information in the issue.
Comment #3
abhaypai commentedUpdating the status to Needs work, i guess postponed was incorrect to select.