protected function getRedirectUrl()
    {
        $url = $this->redirector->getUrlGenerator();

        if ($this->redirect) {
            return $url->to($this->redirect);
        } elseif ($this->redirectRoute) {
            return $url->route($this->redirectRoute);
        } elseif ($this->redirectAction) {
            return $url->action($this->redirectAction);
        }

        return $url->previous();
    }
protected function getRedirectUrl()
    {
        $url = $this->redirector->getUrlGenerator();

        if ($this->redirect) {
            return $url->to($this->redirect);
        } elseif ($this->redirectRoute) {
            return $url->route($this->redirectRoute);
        } elseif ($this->redirectAction) {
            return $url->action($this->redirectAction);
        }

        return $url->previous();
    }
protected function getRedirectUrl ( ) { $ url = $ this -> redirector -> getUrlGenerator ( ) ; if ( $ this -> redirect ) { return $ url -> to ( $ this -> redirect ) ; } elseif ( $ this -> redirectRoute ) { return $ url -> route ( $ this -> redirectRoute ) ; } elseif ( $ this -> redirectAction ) { return $ url -> action ( $ this -> redirectAction ) ; } return $ url -> previous ( ) ; }
Get the URL to redirect to on a validation error.

@return string
Get the URL to redirect to on a validation error .