Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support splat params when injecting parameters #10

Closed
ghost opened this issue Nov 5, 2015 · 0 comments
Closed

Support splat params when injecting parameters #10

ghost opened this issue Nov 5, 2015 · 0 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Nov 5, 2015

If a route is defined using splat params (e.g. /users/*) the go method should inject what ever is given as route arguments correctly.

// Define a route with splat param
Backbone.Highway.route('user.detail', {
  path: '/users/*',
  action: function () {}
});

// Execute route
Backbone.Highway.go('user.detail', ['42/detail']); // Should route to /users/42/detail
@ghost ghost added the bug label Nov 5, 2015
@ghost ghost added this to the 0.6.0 milestone Nov 5, 2015
@ghost ghost self-assigned this Nov 13, 2015
@ghost ghost closed this as completed Nov 27, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants