diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 7009c7f4..dae001c4 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -301,7 +301,9 @@ function ajaxSend(url, data, popState) { setHtml('loader', ''); } else { if (!popState) { - history.pushState(data, '', url); + if (data || url != location.href) { + history.pushState(data, '', url); + } scrollTo(0, 0); } setHtml('content', text);