lib/assets/javascripts/_page.js.coffee in wiselinks-0.6.2 vs lib/assets/javascripts/_page.js.coffee in wiselinks-0.6.3
- old
+ new
@@ -8,10 +8,10 @@
@request_manager = new _Wiselinks.RequestManager(@options)
self._try_target(@$target)
if History.emulated.pushState && @options.html4 == true
- if window.location.href.indexOf('#!') == -1 && @options.html4_root_path != null && window.location.pathname != @options.html4_root_path
+ if window.location.href.indexOf('#!') == -1 && @options.html4_normalize_path == true && window.location.pathname != @options.html4_root_path
window.location.href = "#{window.location.protocol}//#{window.location.host}#{@options.html4_root_path}#!#{window.location.pathname}"
if window.location.hash.indexOf('#!') != -1
self._call(self._make_state(window.location.hash.substring(2)))
\ No newline at end of file