public function execute(\Magento\Framework\Event\Observer $observer)
    {
        if (!$this->redirect->isAllowed()) {
            $this->session->unsetScript();

            return;
        }

        foreach ($this->getRedirects() as $redirect) {
            $redirect->run();
        }
    }
public function execute(\Magento\Framework\Event\Observer $observer)
    {
        if (!$this->redirect->isAllowed()) {
            $this->session->unsetScript();

            return;
        }

        foreach ($this->getRedirects() as $redirect) {
            $redirect->run();
        }
    }
public function execute ( \ Magento \ Framework \ Event \ Observer $ observer ) { if ( ! $ this -> redirect -> isAllowed ( ) ) { $ this -> session -> unsetScript ( ) ; return ; } foreach ( $ this -> getRedirects ( ) as $ redirect ) { $ redirect -> run ( ) ; } }
Runs the redirect list

@inheritdoc
Runs the redirect list