aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nextlink.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/nextlink.js b/nextlink.js
index ce5bb94..d2184a3 100644
--- a/nextlink.js
+++ b/nextlink.js
@@ -45,6 +45,7 @@ if (!liberator.plugins.libly) {
var libly = liberator.plugins.libly;
var $U = libly.$U;
var logger = $U.getLogger('nextlink');
+var $H = Cc["@mozilla.org/browser/global-history;2"].getService(Ci.nsIGlobalHistory2);
var isFollowLink = typeof liberator.globalVariables.nextlink_followlink == 'undefined' ?
false : $U.eval(liberator.globalVariables.nextlink_followlink);
@@ -356,6 +357,8 @@ Autopager.prototype = {
p.className = 'vimperator-nextlink-page';
cache.mark.push(p);
+ $H.addURI(makeURI(reqUrl), false, true, makeURI(url));
+
return page.map(function(elem) {
var pe = doc.importNode(elem, true);
cache.insertPoint.parentNode.insertBefore(pe, cache.insertPoint);