title: ZF2 Redirect to route with controller action
body: <p>In module.config.php i added:</p>
  
  <pre><code>    'logout' =&gt; array(
          'type' =&gt; 'literal',
          'options' =&gt; array(
              'route'    =&gt; '/logout',
              'defaults' =&gt; array(
                  '__NAMESPACE__' =&gt; 'Users\Controller',
                  'controller'    =&gt; 'Index',
                  'action'        =&gt; 'logout',
              ),
          ),
      ),
  </code></pre>
  
  <p>in IndexController.php added:</p>
  
  <pre><code>public function logoutAction() {
      $this-&gt;getSessionStorage()-&gt;forgetMe();
      $this-&gt;getAuthService()-&gt;getStorage()-&gt;clear("email");
      return $this-&gt;redirect()-&gt;toRoute('users', array('controller' =&gt; 'Login', 'action' =&gt; 'index'));
  }
  </code></pre>
  
  <p>and always redirects to <a href="http://localhost/users" rel="nofollow">http://localhost/users</a> but should to <a href="http://localhost/users/login/index" rel="nofollow">http://localhost/users/login/index</a></p>