There was an error while loading. Please reload this page.
1 parent f8e4bb7 commit 4f16344Copy full SHA for 4f16344
Plugin/LocalePlugin.php
@@ -41,7 +41,7 @@ public function __construct(string $locale)
41
public function handleQuery(Query $query, callable $next, callable $first)
42
{
43
$locale = $query->getLocale();
44
- if (null !== $locale && '' !== $locale) {
+ if (null === $locale || '' === $locale) {
45
$query = $query->withLocale($this->locale);
46
}
47
0 commit comments