-
-
Notifications
You must be signed in to change notification settings - Fork 512
Open
Labels
Description
Describe the bug
Translatable route parameters
http://url/en/article/important-change
http://url/es/articulo/cambio-importante
I setup like example, when access directly from url it ok. But when use button change language (also like example Creating a language selector). it show url 404. if not have parameters, it ok.
To Reproduce
Steps to reproduce the behavior:
- Go to http://url/en/article/important-change
- Click on change language es button.
- auto redirect to http://url/es/article/important-change
- 404 & See error
Expected behavior
when change language ES, it redirect to http://url/es/articulo/cambio-importante
More info:
- Version of Laravel : 10
- Version of the Laravel-localization package : 1.8
- Which middleware is used in
Route::groups
: 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' - Copy of the config file ( or at least setting of
supportedLocales
: all,useAcceptLanguageHeader
: false andhideDefaultLocaleInURL
:true).
it seems code in button change language have issue, it not generate to url belong to this language
umaraziz0, mlayah, kichetof, ianfortier and alexander-bet