browserstate / history.js

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality.
http://browserstate.github.com/history.js/demo/
Other
10.75k stars 1.35k forks source link

Change domain "mysite.com/page1" to "mysite.com" #481

Open LucianViana opened 5 years ago

LucianViana commented 5 years ago

I have "mysite.com/page1/index.xhtml" and when using history.js the url is changed to "mysite.com/page1/page2" and should be "mysite.com/page2", like working on domain "mysite.com" and not "mysite.com/page1", ie return one level up by changing to "mysite.com/page2?