From 165ab544fabd5829483107e592dd77baf9df03e0 Mon Sep 17 00:00:00 2001 From: Long Zheng Date: Thu, 27 Nov 2014 17:23:56 +1100 Subject: [PATCH] Maintain history state object when changing pages This is required for history-management libraries like jquery-pjax which uses the state object to load pages via AJAX. --- src/extension/history.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension/history.js b/src/extension/history.js index 7470690c..72722451 100644 --- a/src/extension/history.js +++ b/src/extension/history.js @@ -30,6 +30,8 @@ var IASHistoryExtension = function (options) { if (!window.history || !window.history.replaceState) { return; } + + state = history.state; history.replaceState(state, document.title, url); };