Matched from path parameters overrides values passed via query string
Closed this issue · 1 comments
kaero commented
Route definition:
{
pattern: '/jeans(/<brand>(/<id>))',
conditions: {
brand: [ 'levis', 'wrangler' ],
id: '\\d{3,5}'
},
defaults: {
brand: 'levis'
}
}
Result for URL '/jeans/levis?id=567&id=678'
:
{
"brand": "levis",
"id": [ "567", "678" ]
}
but result for URL '/jeans/levis/456?id=567&id=678'
looks incorrect (query string values overridden by matched from path, instead of be extended):
{
"brand": "levis",
"id": "456"
}
ruslankerimov commented