Hi all,

I have an issue with the following route (sf1.3)

press:
  url:   /press/:year
  param: { module: press, action: index, year: ~ }
  requirements: { year: "\d{4}" }

The goal is that I can access /press and show a list of all press
items, or access /press/2008 and show only article from 2008..
That all actually works. However, when the route "press" is generated,
it comes out as follows: /press/ and the second slash makes it not
work.
So, my question being.. routes with wildcards * omit the trailing
separator. How come routes with optional parameters don't behave the
same?

Is that something that can be retro-fitted, seeing that it's somewhat
unexpected behavior, as the routing generates a route that it does not
recognize later on?

Daniel

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to