Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Index routing since Symfony 3.4.7 #222

Open
rmatcar opened this issue Apr 17, 2018 · 1 comment
Open

Error Index routing since Symfony 3.4.7 #222

rmatcar opened this issue Apr 17, 2018 · 1 comment

Comments

@rmatcar
Copy link

rmatcar commented Apr 17, 2018

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!

@jasson-33
Copy link

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants