ZF-3922: Router no longer matches urls with trailing slashes

Issue Type: Bug Created: 2008-08-11T06:35:12.000+0000 Last Updated: 2008-09-02T10:39:36.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Matthew Weier O'Phinney (matthew) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:


Prior to 1.6.0RC2 sanity check packages, the following route:

<pre class="highlight">
routes.article.type = "Zend_Controller_Router_Route"
routes.article.route = "blog/articles/:id"
routes.article.defaults.controller = blog
routes.article.defaults.action = articles = 0 = "[0-9]+"

would match both 'http://localhost/blog/articles/2000/' and 'http://localhost/blog/articles/2000'; currently, only the latter route now will match.


Posted by Ben Scholzen (dasprid) on 2008-08-11T06:41:11.000+0000

Does a unit test cover this case yet?

Posted by Matthew Weier O'Phinney (matthew) on 2008-08-11T06:49:21.000+0000

Fixed in trunk with r10883 and in 1.6 release branch with r10884 (verified on

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:36.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.