i have two roles in my application : user and Admin i configure my access control that , the user cannot access to my page : hello , only the admin have this access: i used this code in my security.yml
access_control:
- { path: ^/hello/, role: ROLE_ADMIN }
when a simple user will connect in the root : hello.I have the error : access denied:
how can i configure my app , that will redirect the simple user to the main page (or connection page) when he will want to access to the root hello.
Thank you for your help