Backbone.js routing without changing url
Posted
by
louism
on Stack Overflow
See other posts from Stack Overflow
or by louism
Published on 2013-06-27T04:18:27Z
Indexed on
2013/06/27
4:21 UTC
Read the original article
Hit count: 195
I am migrating a single-page web application based on Backbone.js and jQuery to a Chrome extension. However, neither the pushState
nor the hashbang-based router modes seem to play well with the environment within the extension. I've come to the conclusion that I'm better off just directly rendering views on user interactions, bypassing the window.location
system altogether. However, I'm not too sure how to implement this without changing calls to Router.navigate
in dozens of files.
Is there a pluggable/modular way to keep the Backbone routing system but bypass any changes to the url?
© Stack Overflow or respective owner