hash = this.$active[0].getAttribute('href');
}
if(hash !== window.location.hash) {
- if (window.history.pushState) {
- if (this.options.updateHistory) {
- window.history.pushState({}, '', hash);
- } else {
- window.history.replaceState({}, '', hash);
+ if(window.history.pushState){
+ var url = curIdx !== undefined ? hash : window.location.pathname;
- window.history.pushState(null, null, url);
++ if(this.options.updateHistory){
++ window.history.pushState({}, '', url);
++ }else{
++ window.history.replaceState({}, '', url);
+ }
- } else {
+ }else{
window.location.hash = hash;
}
}