views:

63

answers:

1

I have mp3 catalog portal and I want to customize my urls. I used url for downloading songs - /download/song/:song_id But now I want url to look like /download/song:song_id - symfony doesn't recognize this pattern, :song_id parameter substitutes in url as is, so I get /download/song:song_id instead of f.e. /download/song14

+1  A: 

Solved via adding empty separator_segment: options: { segment_separators: [/, ., -, ''] }

YS-PRO
As in, an empty string? How does that hit performance?
Raise
It works great. I'm not sure about hit performance
YS-PRO
probably you have to mark this answer as answer ;)
develop7
I can accept my own answer tomorrow )
YS-PRO