Closed fyrts closed 5 months ago
Currently, the following route definition always drops the locale prefix:
Route::prefix('prefix')->group(function () { Route::multilingual('/')->name('index'); });
localized_route('index') now always results in /prefix instead of /{locale}/prefix when applicable (regardless of settings).
localized_route('index')
/prefix
/{locale}/prefix
I've modified MultilingualRegistrar::generatePrefixForLocale so that it doesn't drop the locale prefix when a group prefix applies.
MultilingualRegistrar::generatePrefixForLocale
Sorry for the delay and thanks for the fix @fyrts!
Currently, the following route definition always drops the locale prefix:
localized_route('index')
now always results in/prefix
instead of/{locale}/prefix
when applicable (regardless of settings).I've modified
MultilingualRegistrar::generatePrefixForLocale
so that it doesn't drop the locale prefix when a group prefix applies.