Missing locale in login page
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Missing locale in login page
Hello,
I configured routes in shop.php for using locale in url, everything works fine except login page.
When I hit /login, then login page is loaded, but when I use /en/login then page is not found(error 404). Probably url do not keep locale for login page.
/en/shop works fine.
Do I need some another configuration?
My routes configuration in shop.php
I configured routes in shop.php for using locale in url, everything works fine except login page.
When I hit /login, then login page is loaded, but when I use /en/login then page is not found(error 404). Probably url do not keep locale for login page.
/en/shop works fine.
Do I need some another configuration?
My routes configuration in shop.php
Code: Select all
'routes' => [
'admin' => ['prefix' => 'admin', 'middleware' => ['web']],
'jqadm' => ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth']],
'jsonadm' => ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth']],
'jsonapi' => ['prefix' => 'jsonapi', 'middleware' => ['web', 'api']],
'account' => ['prefix' => '{locale}/myaccount', 'middleware' => ['web', 'auth']],
'default' => ['prefix' => '{locale}/shop', 'middleware' => ['web']],
'update' => [],
],
Re: Missing locale in login page
There's a nice post how to configure the auth routes with locales:
https://laraveldaily.com/multi-language ... with-auth/
https://laraveldaily.com/multi-language ... with-auth/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star