code/dispatcher/behavior/routable.php
protected function _beforeDispatch(DispatcherContext $context)
    {
        $view = $context->request->query->get('view', 'cmd');

        //Redirect if no view information can be found in the request
        if(empty($view))
        {
            $url = clone($context->request->getUrl());
            $url->query['view'] = $this->getController()->getView()->getName();

            $this->redirect($url);

            return false;
        }

        return true;
    }
protected function _beforeDispatch(DispatcherContext $context)
    {
        $view = $context->request->query->get('view', 'cmd');

        //Redirect if no view information can be found in the request
        if(empty($view))
        {
            $url = clone($context->request->getUrl());
            $url->query['view'] = $this->getController()->getView()->getName();

            $this->redirect($url);

            return false;
        }

        return true;
    }
protected function _beforeDispatch ( DispatcherContext $ context ) { $ view = $ context -> request -> query -> get ( 'view' , 'cmd' ) ; //Redirect if no view information can be found in the request if ( empty ( $ view ) ) { $ url = clone ( $ context -> request -> getUrl ( ) ) ; $ url -> query [ 'view' ] = $ this -> getController ( ) -> getView ( ) -> getName ( ) ; $ this -> redirect ( $ url ) ; return false ; } return true ; }
Redirects the page to the default view

@param   DispatcherContext $context The active command context
@return  bool
Redirects the page to the default view