Open smarques opened 11 years ago
I had the same problem Does I need to create History.options before I include History.js script ?
thanks you
Looks like you need to define most options before including history.js. For example:
<script>window.History = {options: {html4Mode: true}};</script>
<script src="history.js"></script>
I can not get the html4Mode option to work for me. I am using the ajaxify script (https://github.com/browserstate/ajaxify) on a very simple two page app. Everything works fine, but if I want to force the html4 fallback for testing purposes nothing changes, it seems history ignores the options and continues to use html5 push state urls.
I just changed the ajaxify script adding (on DOM ready):
History.options.html4Mode = true;
(I am including the v1.8b1 jquery html4+5 bundle script )