Closed ghost closed 8 years ago
Add an option to the Backbone.Highway.go() method so that it can re-execute (trigger) the route if it's the same.
Backbone.Highway.go()
For example, you redirect the user to a profile route that is defined with the name user.profile like this
user.profile
Backbone.Highway.go('user.profile');
Re-executing the method with a force parameter should re-execute the route.
force
Backbone.Highway.go('user.profile', { force: true });
Add an option to the
Backbone.Highway.go()
method so that it can re-execute (trigger) the route if it's the same.For example, you redirect the user to a profile route that is defined with the name
user.profile
like thisRe-executing the method with a
force
parameter should re-execute the route.