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
Describe the bug
When using getNonLocalizedURL, the returned URL is not properly not localized.
To Reproduce locale in config/app.php is nl (default).
Example URI:/nl/dit-is-een-url
Applying this URI returns /nl/dit-is-een-url
Example URI:/en/this-is-a-url
Applying this URI returns /nl/dit-is-een-url
Example URI:/dit-is-een-url (enabling hideDefaultLocaleInURL)
Applying this URI returns /dit-is-een-url
Example URI:/this-is-a-url (enabling hideDefaultLocaleInURL)
Applying this URI returns /dit-is-een-url
Expected behavior
I'd expect to get the given/current URL without a locale prefix. However, this is only ever the case if the current locale is the default and the default is hidden.
So, per given examples, i'd expect:
/dit-is-een-url
/this-is-a-url
/dit-is-een-url
/this-is-a-url
More info:
Version of Laravel: 7.30.4
Version of the Laravel-localization package: 1.6.1
Which middleware is used in Route::groups: 'localeSessionRedirect', 'localizationRedirect'
The text was updated successfully, but these errors were encountered:
Describe the bug
When using
getNonLocalizedURL
, the returned URL is not properly not localized.To Reproduce
locale
inconfig/app.php
isnl
(default)./nl/dit-is-een-url
Applying this URI returns
/nl/dit-is-een-url
/en/this-is-a-url
Applying this URI returns
/nl/dit-is-een-url
/dit-is-een-url
(enablinghideDefaultLocaleInURL
)Applying this URI returns
/dit-is-een-url
/this-is-a-url
(enablinghideDefaultLocaleInURL
)Applying this URI returns
/dit-is-een-url
Expected behavior
I'd expect to get the given/current URL without a locale prefix. However, this is only ever the case if the current locale is the default and the default is hidden.
So, per given examples, i'd expect:
/dit-is-een-url
/this-is-a-url
/dit-is-een-url
/this-is-a-url
More info:
Route::groups
:'localeSessionRedirect', 'localizationRedirect'
The text was updated successfully, but these errors were encountered: