We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7eb7aa commit 05fcb7bCopy full SHA for 05fcb7b
src/LocalizedUrlGenerator.php
@@ -293,11 +293,9 @@ protected function stripLocaleFromRouteName($name)
293
return $name;
294
}
295
296
- $locales = $this->getLocaleKeys();
297
-
298
// If the first part of the route name is a valid
299
// locale, then remove it from the array.
300
- if (in_array($parts[0], $locales)) {
+ if ($this->localeIsSupported($parts[0])) {
301
array_shift($parts);
302
303
0 commit comments