Can't Get Backbone Routes Without Hashes?
I want to have bookmarkable URLs that the browser can capture and handle. If I just use Backbone.history.start(), then I can use hash URLs, like /#accounts. But I want URLs withou
Solution 1:
You would navigate to that url with js using router.navigate( "/accounts", true )
, not by links or entering the url yourself. To use links, you must bind a click event to them and prevent the default action and call navigate to the links href.
router
is an instance of Router
Post a Comment for "Can't Get Backbone Routes Without Hashes?"