Malformed output of http route.getUrl() when using regex parameter constraints
Closed this issue · 0 comments
fogine commented
When a route endpoint string defined more than one regular expression parameter constraints like:
const route = router.buildRoute({
type: 'get',
url: '/resource/:resource_id(\d+)/resource2/:resource2_id(\d+)'
});
route.getUrl()
cuts off everything after the first regex constraint and returns:
/resource/:resource_id
instead of expected
/resource/:resource_id/resource2/:resource2_id