Symfony: How to redirect to home page after logout
Normally it is redirect to home. Check your security.yml config file.
firewalls:
default:
logout:
path: /logout
target: / #This is home url
On Symfony 4, by default, the logout action redirects to the / path. You can change the default behavior by setting the proper configuration parameter in the security.yml config file.
security:
...
firewalls:
...
main:
...
logout:
...
target: app_login # you can specify a hard coded URL path or a route name