diff --git a/core/modules/locale/lib/Drupal/locale/LocaleConfigSubscriber.php b/core/modules/locale/lib/Drupal/locale/LocaleConfigSubscriber.php index cb9be73..11fa899 100644 --- a/core/modules/locale/lib/Drupal/locale/LocaleConfigSubscriber.php +++ b/core/modules/locale/lib/Drupal/locale/LocaleConfigSubscriber.php @@ -134,7 +134,9 @@ public function getLocaleConfigName($name, Language $language) { static function getSubscribedEvents() { $events['config.context'][] = array('configContext', 20); $events['config.load'][] = array('configLoad', 20); - $events[KernelEvents::REQUEST][] = array('onKernelRequestSetDefaultConfigContextLocale', 20); + // Set the priority above the one from the RouteListener (priority 32) + // so ensure that the context is cleared before the routing system steps in. + $events[KernelEvents::REQUEST][] = array('onKernelRequestSetDefaultConfigContextLocale', 48); return $events; } }