Don't add the same page to history in AJAX
This commit is contained in:
parent
3a84672355
commit
d3609817a1
|
@ -301,7 +301,9 @@ function ajaxSend(url, data, popState) {
|
|||
setHtml('loader', '');
|
||||
} else {
|
||||
if (!popState) {
|
||||
if (data || url != location.href) {
|
||||
history.pushState(data, '', url);
|
||||
}
|
||||
scrollTo(0, 0);
|
||||
}
|
||||
setHtml('content', text);
|
||||
|
|
Loading…
Reference in a new issue