Model
Redirect
Magento\Customer\Model\Account\Redirect
What it does
This class manages customer redirect logic after login, registration, or logout actions in Magento 2.
It determines where to send customers based on their authentication state, previous URLs visited, store configuration, and referrer parameters.
Developers use this when customizing post-authentication navigation flows or integrating custom redirect logic into the customer account area.
Public Methods
- getRedirect()
- setCookieManager()
- getRedirectCookie()
- setRedirectCookie()
- clearRedirectCookie()