I'm having an issue while using FOSUserBundle (dev-master) on Symfony 3.4.17.
The problem is that I'm not redirected where I want to be after having been logged in successfully, and I don't find how to rewrite the route where I want to be redirected.
I'm having this error message:
The _controller value "TICoreBundle:Default:index" maps to a "TI\CoreBundle\Controller\DefaultController" class, but this class was not found. Create this class or check the spelling of the class and its namespace.
I know that I could simply create a Default Controller in the TICoreBundle, and redirect using an indexAction.
But I'm pretty sure that this isn't an elegant solution.
Is there any place where I'm supposed to rewrite the route? I found this a bit disturbing since I used this Bundle in another project without any redirecting problem, and I don't find what is different between them.
EDIT: I solved my problem by adding:
# app/config/security.yml
form_login:
default_target_path: after_login_route_name
as suggested here: https://symfony.com/doc/3.4/security/form_login.html