Log in
Model

Redirect

Magento\Backend\Model\View\Result\Redirect

What it does

This class handles redirects specifically for Magento 2 admin/backend pages.

Developers use it to redirect admin users to previous pages or the dashboard, with special handling for admin session state and URL validation flags.

It extends the framework's base Redirect class with backend-specific features like tracking URL notices in the admin session.

Public Methods

  • setRefererOrBaseUrl()