title: problem with Zend URL helper $this->url
body: <p>I have situation with Zend route &amp; $this->url method</p>
  
  <p>IN my bootstrap.php I have few routes as </p>
  
  <pre><code> $route = new Zend_Controller_Router_Route(
          'dashboard',
          array(
              'action'     =&gt; 'index',
              'controller' =&gt; 'index',
              'module'     =&gt; 'dashboard',
              'isAdmin'    =&gt; true
          )
      );
      $router-&gt;addRoute('dashboard', $route);
  
  $route = new Zend_Controller_Router_Route(
          'logout',
          array(
              'action'     =&gt; 'logout',
              'controller' =&gt; 'index',
              'module'     =&gt; 'main',
              'isAdmin'    =&gt; true
          )
      );
      $router-&gt;addRoute('logout', $route);
  
  $route = new Zend_Controller_Router_Route(
          'manage-users',
          array(
              'action'     =&gt; 'list',
              'controller' =&gt; 'index',
              'module'     =&gt; 'main',
              'isAdmin'    =&gt; true
          )
      );
      $router-&gt;addRoute('manage-users', $route);
  
  $route = new Zend_Controller_Router_Route(
          'edit-user/:id',
          array(
              'action'     =&gt; 'edit',
              'controller' =&gt; 'index',
              'module'     =&gt; 'main',
          ),
           array('id' =&gt; '[0-9]+')
      );
      $router-&gt;addRoute('edit-user', $route);
  
  
   $route = new Zend_Controller_Router_Route(
          '/manage-subcat/:ident',
          array(
              'action'     =&gt; 'index',
              'controller' =&gt; 'subcategory',
              'module'     =&gt; 'category',
              'ident'      =&gt; '',
              array(
                  'ident' =&gt; '[a-zA-Z-_0-9]+',
              )
          )
      );
      $router-&gt;addRoute('manage-subcat', $route);
  </code></pre>
  
  <p>take a case of last route</p>
  
  <p>in my view when I write </p>
  
  <pre><code>&lt;a href="&lt;?php echo $this-&gt;url(array ('controller'=&gt; 'subcategory', 'action'=&gt; 'index', 'module'=&gt; 'category', 'ident' =&gt; $cats-&gt;catident ), 'manage-subcat', true ) ?&gt;"&gt;&lt;?php echo $cat-&gt;CategoryName ?&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I get url as <strong>http://127.0.0.10/manage-subcat</strong></p>
  
  <p>&amp; when I disable the last route in bootstrap &amp; then I write in my view file </p>
  
  <pre><code>&lt;a href="&lt;?php echo $this-&gt;url(array ('controller'=&gt; 'subcategory', 'action'=&gt; 'index', 'module'=&gt; 'category', 'ident' =&gt; $cats-&gt;catident ) ) ?&gt;"&gt;&lt;?php echo $cat-&gt;CategoryName ?&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I get Url as same  <strong>http://127.0.0.10/category/subcategory</strong></p>
  
  <p>Ideally I should get <strong>http://127.0.0.10/category/subcategory/ident/some-category</strong> for this one</p>
  
  <p>&amp; for previous one it should be <strong>http://127.0.0.10/manage-subcat/ident/some-category</strong></p>
  
  <p>This code sample is not working with custom routes as well as traditional routes, and I am trying to determine why this sample is not working correctly.</p>