schmittjoh / JMSI18nRoutingBundle

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

Validate locale from cookie/session against config #211

Open aik099 opened 6 years ago

aik099 commented 6 years ago

Right now the locale detected from cookie/session is used as-is without being validated against enabled locales in config. This has 2 side effects:

  1. new locale isn't always available and pages show as 404, when accessed
  2. removed locale is showing as working and not as 404

To fix that I hard to clear all the caches. Probably we can detect that on the fly.