SilverCart\Extensions\Pages\ErrorPageControllerExtension
Extension for ErrorPageController.
Checks the invalid URL for product ID hints. If a product ID was found, the
customer will be redirected to the product detail page.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2018 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- onAfterInit() — Checks if the requested URL contains a product ID as the second last part.