Redirect After Login
Composer kowal/module-redirectafterlogin · Version 1.0.6
Product page
Redirect After Login — kowal.co
Description
Routes customers in selected groups to the store view associated with their account after login.
For whom
For administrators of multistore installations where customers sign in from different store views.
Features
- Select the customer groups that trigger the redirect.
- Resolve the target store view from the customer account’s store ID.
- Keep the standard login flow for other groups.
Installation
From the Magento root, with Composer access to the Kowal package, run
composer require kowal/module-redirectafterlogin
bin/magento module:enable Kowal_RedirectAfterLogin
bin/magento setup:upgrade
bin/magento cache:clean
Configuration
- Open Redirect After Login → Ustawienia in store configuration.
- Turn on Włącz moduł and select the groups under Grupy klientów. The feature is off by default.
- Save in the scope where the customer starts the login process.
Requirements / notes
The package requires kowal/base and handles the standard customer login form. If the destination session is signed out, the controller attempts to empty its cart before signing the customer in.
FAQ
Where do I enter the destination URL for a group?
The group selects who gets redirected. The customer account determines the destination store view. If there is no account store ID, the extension uses the default store view.
Verify the installation
bin/magento module:status Kowal_RedirectAfterLogin
On staging, prepare one eligible account and one outside the selected groups. Sign in from the same store view in separate sessions. Compare the destination view, sign-in state and contents of a test cart.