schmittjoh / JMSI18nRoutingBundle

Allows you to internationalize your routing
http://jmsyst.com/bundles/JMSI18nRoutingBundle
358 stars 159 forks source link

Error Index routing since Symfony 3.4.7 #222

Open rmatcar opened 6 years ago

rmatcar commented 6 years ago

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!

jasson112 commented 6 years ago

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 😄