cms.sitePicker.overrideParams

Triggered in Cms\Helpers\Cms\HasSites.

Enables manipulating the URL parameters

You will have access to the page object, the old and new locale and the URL parameters.

Example usage:

Event::listen('cms.sitePicker.overrideParams', function($page, $params, $currentSite, $proposedSite) {
   if ($page->baseFileName == 'your-page-filename') {
        return YourModel::overrideParams($params, $currentSite, $proposedSite);
    }
});