I have created a custom config entity, which declares a list_builder controller to return a list of the created entities. Before creating a config entity, it renders as expected. Once I create a config entity via its add form, which redirects back to the list_builder controller, the error is thrown. The config entity is saved, but the redirect fails.
Here's the redirect in the config entity form class's ::save() method.
Also, navigating directly to the list_builder controller path throws the same error.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.config_entity_id.edit_form" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 187 of /home/vagrant/docroot/core/lib/Drupal/Core/Routing/RouteProvider.php)
I have no idea where the route entity.config_entity_id.edit_form is coming from. How to resolve the thrown error?