call refreshApplicationWithLocale method with default locale prefix
call route('some_route_name')
See generated URL with default locale prefix, which must be hidden.
Expected behavior
See generated URL without default prefix.
More info:
Version of Laravel 5.8.35
Version of the Laravel-localization package 1.4.7
Which middleware is used in Route::groups web
Copy of the config file ( or at least setting of supportedLocales, useAcceptLanguageHeader and hideDefaultLocaleInURL).
'hideDefaultLocaleInURL' => true,
'useAcceptLanguageHeader' => true,
Minimal steps to reproduce on a clean Laravel installation.
Additional context
Add any other context about the problem here.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior See generated URL without default prefix.
More info:
Version of Laravel 5.8.35
Version of the Laravel-localization package 1.4.7
Which middleware is used in
Route::groups
webCopy of the config file ( or at least setting of
supportedLocales
,useAcceptLanguageHeader
andhideDefaultLocaleInURL
). 'hideDefaultLocaleInURL' => true, 'useAcceptLanguageHeader' => true,Minimal steps to reproduce on a clean Laravel installation.
Additional context Add any other context about the problem here.