---
title: 'Redirect After Login'
url: 'https://info.srv.kowal.co/docs/magento/modules/redirect-after-login'
markdown: 'https://info.srv.kowal.co/docs/magento/modules/redirect-after-login.md'
lang: en
date: '2026-11-30'
description: 'Choose which customer groups to redirect after sign-in. Magento uses the store view saved on each account. Test the redirect by signing in from another store view.'
taxonomy:
  category:
    - docs
    - Magento
    - Modules
  tag:
    - customers
    - multistore
---

# Redirect After Login

**Composer** `kowal/module-redirectafterlogin` · **Version** 1.0.6

## Product page

[Redirect After Login — kowal.co](https://kowal.co/magento-module-redirect-customer-after-login-by-customer-group-to-correct-store)

## 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

```sh
composer require kowal/module-redirectafterlogin
bin/magento module:enable Kowal_RedirectAfterLogin
bin/magento setup:upgrade
bin/magento cache:clean
```

## Configuration

1. Open **Redirect After Login → Ustawienia** in store configuration.
2. Turn on **Włącz moduł** and select the groups under **Grupy klientów**. The feature is off by default.
3. 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

```sh
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.

---

## Navigation

- Parent: [Magento 2 Extensions](https://info.srv.kowal.co/docs/magento/modules.md)
- Previous: [PageBuilder Slider Fix](https://info.srv.kowal.co/docs/magento/modules/page-builder-slider-fix.md)
- Next: [Insert Product Attribute Into Template](https://info.srv.kowal.co/docs/magento/modules/insert-product-attribute-in-to-template.md)
