Category: yaml

Symfony 4, conditional route redirect/override in PROD mode

The route of FosUserBundle ‘/login’ must not be accessible in Production mode. It must redirect to the route ‘/choiceConnexion’. I thought I had this working because in dev mode there is a redirect successfully taking place, using ‘config/routes/dev/routes.yaml’ in this…