schmittjoh/JMSI18nRoutingBundle

Error Index routing since Symfony 3.4.7

Opened this issue · 1 comments

Hi,

From Symfony 3.4.7 if there is no routing "/", it shows a warning index instead of my index.

The issue is that this module convert internally "/" in "/en/", "/es/", "/de/", etc... as you can with "php bin/console debug:router".

routes

index

How can we solve this issue?

Thanks!

Hi i have the same problem but i find a temp fix:

In the config/routes.yaml you can add this route:

app_home:
path: /
controller: FrameworkBundle:Redirect:redirect
options: { i18n: false }
defaults:
route: homepage
permanent: true
this fix redirect the / path to homepage route and every shoud be works fine !

I hope it works for you 😄