ZF2-259: Trailing slashes - Page Not Found Error

Description

I was testing the new Akrabat tutorial on ZF2 and got to this URL: http://zf2.localhost/album/add/ which causes the Page Not Found Error!

So, I removed the traing slash and the page was found...

I think it a critical bug...

Comments

This is not a bug, nor is it critical. URLs are to be specified explicitly. If you want to allow both variants, you could either use e.g. mod_rewrite to rewrite trailing-slash URLs to those with no trailing slashes, or write a listener which removes the trailing slash from the request (which I personally don't advise due to duplicate content).

Not a bug? Why ZF1 does its job with and without trailing slash? I've used the same htaccess file for both ZF1 and ZF2 and it just happened to ZF2 not being able to find the page.

IMO If the route refer to an action page then it should not have trailing slash, but if you think than this behavior is wrong you are free to open a discussion in the mailing list (zf-contributor)

IMO When you find a trailing slash you expects find more child pages like /album/add/XXXXX