From 9d6532fe7ba133ef9fe4c9fb8b80ed5b98c3d0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 21 Apr 2016 22:59:42 +0300 Subject: [PATCH] moved to ajaxify.start --- public/src/ajaxify.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index e31786294b..53f979224a 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -71,12 +71,6 @@ $(document).ready(function() { return onAjaxError(err, url, callback, quiet); } - if (window.history && window.history.pushState) { - window.history[!quiet ? 'pushState' : 'replaceState']({ - url: url - }, url, RELATIVE_PATH + '/' + url); - } - retry = true; app.template = data.template.name; @@ -111,6 +105,11 @@ $(document).ready(function() { } ajaxify.currentPage = url.split(/[?#]/)[0]; + if (window.history && window.history.pushState) { + window.history[!quiet ? 'pushState' : 'replaceState']({ + url: url + }, url, RELATIVE_PATH + '/' + url); + } return url; };