yspro
yspro

Reputation: 1658

symfony routing problem

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

Upvotes: 0

Views: 260

Answers (1)

yspro
yspro

Reputation: 1658

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

Upvotes: 1

Related Questions