title: Zend redirect not working
body: <p>I have following configuration in module.config.php</p>
  
  <pre><code>'router'=&gt;array(
          'routes'=&gt;array(
                  'test'=&gt;array(
                          'type'=&gt;'Zend\Mvc\Router\Http\Literal',
                          'options'=&gt;array(
                                  'route'=&gt;'/test',
                                  'defaults'=&gt;array(
                                          'controller'=&gt;'Test\Controller\Index',
                                          'action'=&gt;'index'
                                  )
                          ),
                          'may_terminate' =&gt; true,
                          'child_routes' =&gt; array(
                                  'edit' =&gt; array(
                                          'type' =&gt; 'segment',
                                          'options' =&gt; array(
                                                  'route' =&gt;'/edit[/:id]',
                                                  'constraints' =&gt;array('id' =&gt; '[\d\w\-_]*'),
                                                  'defaults' =&gt; array(
                                                          'controller' =&gt;'Test\Controller\Index',
                                                          'action' =&gt; 'edit',
                                                  ),
                                          ),
                                  ),
                                  'add' =&gt; array(
                                          'type' =&gt; 'segment',
                                          'options' =&gt; array(
                                                  'route' =&gt;'/add',
                                                  'defaults' =&gt; array(
                                                          'controller' =&gt;'Test\Controller\Index',
                                                          'action' =&gt; 'add',
                                                  ),
                                          ),
                                  ),
                          ),
                  )
          )
  )
  </code></pre>
  
  <p>now I am using following redirect</p>
  
  <p>return $this->redirect()->toRoute('test');</p>
  
  <p>and it is not working. I am not getting what is wrong with this</p>