Log in
Model

CleanTargetUrl

Magento\Store\Model\StoreSwitcher\CleanTargetUrl

What it does

This class cleans up target URLs during store switching by removing store-related query parameters like '___from_store' and store code identifiers.

Developers use this during the store-switching process in Magento's frontend to ensure redirect URLs don't contain unnecessary or conflicting store parameters that could interfere with the switch operation.

Public Methods

  • switch()