private function getRedirects()
    {
        $httpWithJsBackup = [
            $this->httpRedirect,
            $this->jsRedirect
        ];

        return $this->redirect->isTypeJavaScript() ? [$this->jsRedirect] : $httpWithJsBackup;
    }