/ config / packages / routing.yaml
routing.yaml
 1  framework:
 2      router:
 3          utf8: true
 4  
 5          # Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
 6          # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
 7          #default_uri: http://localhost
 8  
 9  when@prod:
10      framework:
11          router:
12              strict_requirements: null