how to convert deep links to hash fragments for IE
I'm trying to figure out how to support deep-linking for IE with a
Backbone application using restful routes. If, for example, I have a url
like:
http://domain.com/base/search/searchTerm
Once in the application, Backbone handles the conversion of these routes
to hash fragments, so the above url would be converted to:
http://domain.com/base#search/searchTerm
But the original link won't be converted to a hash fragment yet, so the
routes I have defined don't match/work for IE9 and under. I can "fix" the
pathname section of the url with a regex to make it work for IE, but I
haven't figured out how to reload that url without refreshing the page so
Backbone processes it as a route. Is this possible and if so, how is it
done?
No comments:
Post a Comment