Skip to content

Commit cc0b997

Browse files
authored
Merge pull request #2 from movemoveapp/bugfix
Bugfix
2 parents 763a6ba + 1043a16 commit cc0b997

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Mcamara/LaravelLocalization/Middleware/LaravelLocalizationDomainRedirectFilter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function handle($request, Closure $next)
4141
return new RedirectResponse($redirection, 302, ['Vary' => 'Accept-Language']);
4242
}
4343
}
44+
} else {
45+
app('laravellocalization')->setLocale($localeByDomain);
4446
}
4547

4648
return $next($request);

0 commit comments

Comments
 (0)