Need to support routes with optional parts that do not contain any parameters, for example:
// Path for a route named 'users'
/users(/:id)(/)
This route works for all these urls when executing the url on first load:
/users
/users/
/users/42
/users/42/
But when navigating to the given route using the go method, Highway will try to inject an inexisting parameter resulting in a corrupted path, for example:
Backbone.Highway.go('users', [42]);
// Will generate the path: /users/42undefined
Need to support routes with optional parts that do not contain any parameters, for example:
This route works for all these urls when executing the url on first load:
/users
/users/
/users/42
/users/42/
But when navigating to the given route using the
go
method, Highway will try to inject an inexisting parameter resulting in a corrupted path, for example: