This project is archived and is in readonly mode.
Parameter :requirements in routing doesn't use implicit anchors
-
Harm Aarts
- Tag changed from 2.3.4, regular, resources, routing to 2.3.4, expressions, regular, resources, routing
-
Andrew White
- Assigned user set to Andrew White
- State changed from new to wontfix
- Importance changed from to Low
The problem you're having is that the space is url encoded as %20 or + when the router compares the regexp. If you change your requirement to explicitly state what is allowed then your route will work. These regexps /[-_a-zA-Z0-9]+/ or /\w+/ both prevent spaces in the url.