fixed language switching in the frontend
This commit is contained in:
@@ -105,7 +105,7 @@ class MarketingController extends Controller
|
||||
|
||||
public function contactView(Request $request)
|
||||
{
|
||||
$locale = app()->getLocale();
|
||||
$locale = \App\Support\LocaleConfig::canonicalize((string) ($request->route('locale') ?? app()->getLocale()));
|
||||
$secondSegment = $request->segment(2);
|
||||
$slug = $secondSegment ? '/'.trim((string) $secondSegment, '/') : '/';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user