You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
This issue does not break the site behavior because after the redirect we got a locale in the URL and LocaleCookieRedirect middleware is set the correct locale to the cookies again.
Probably the issue is caused by this line. We should use no params[0], but $locale variable as the cookie value.
The text was updated successfully, but these errors were encountered:
Describe the bug
Hello. I found a potential bug when was writing integration tests for the site that uses this plugin.
To Reproduce
Steps to reproduce the behavior:
locale
cookie is setSet-Cookie
response header. It will belocale=deleted
for the homepage or will contain the page slug for the other pages.or
locale
cookie for the another language:SetCookie
response header:Expected behavior
locale
cookie must be preservedMore info:
Route::groups
:LocaleCookieRedirect
,LaravelLocalizationRedirectFilter
Additional context
This issue does not break the site behavior because after the redirect we got a locale in the URL and
LocaleCookieRedirect
middleware is set the correct locale to the cookies again.Probably the issue is caused by this line. We should use no
params[0]
, but$locale
variable as the cookie value.The text was updated successfully, but these errors were encountered: