読者です 読者をやめる 読者になる 読者になる

ほんとの手

主に開発や仕事のメモクリップ

Backbone.js の IE9 でページ遷移時にURLにハッシュ(#)がついてしまう

  • Backbone.history.navigateIE9 以下で正しく機能しないことが原因。
    • window.history.pushState の有無を確認し、存在しなければnavigateの処理を別に行うことで対処。

backbone.js - Backbone.history.navigate with IE <= 9 - Stack Overflow

javascript - Backbone.js web application is unusable on Internet Explorer - Stack Overflow

javascript - Backbone.js router and redirection problems with Internet Explorer - Stack Overflow

internet explorer - Backbone Router in IE - Stack Overflow

javascript - Backbone.js PushStates: Fallback for Internet Explorer not working - Stack Overflow

Handling good old IE: Backbone history with... - blog by @johnkpaul

javascript - How to apply backbone router for full path, not a hash - Stack Overflow

infinite redirect loop in old browsers #1779 - GitHub

PushState Router unnecessarily breaks hash fragment links #803