Annotations are used for routing, mixed with yaml. So it is not possible to override those routes, and as the login route is under the global routes importation, if a prefix is used, it breaks all routes. This should not happen as it work in plain Symfony.