From 00c46c491181202d2391619b9517f3f626dd1e6f Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sat, 24 Feb 2024 10:22:03 -0800 Subject: [PATCH] history overrides: add extractOrig in case passed in URL is already rewritten, to be more flexible with rewriting issues caused elsewhere (#138) (fixes most significant issue in webrecorder/pywb#886) bump to 3.7.2 --- package.json | 2 +- src/wombat.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f32be47..895b4b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@webrecorder/wombat", - "version": "3.7.1", + "version": "3.7.2", "main": "index.js", "license": "AGPL-3.0-or-later", "author": "Ilya Kreymer, Webrecorder Software", diff --git a/src/wombat.js b/src/wombat.js index 2317af4..df0f558 100755 --- a/src/wombat.js +++ b/src/wombat.js @@ -3050,6 +3050,8 @@ Wombat.prototype.overrideHistoryFunc = function(funcName) { // in case functions rebound to different history obj! var historyWin = this.___wb_ownWindow || wombat.$wbwindow; + url = wombat.extractOriginalURL(url); + var wombatLocation = historyWin.WB_wombat_location; var rewritten_url; var resolvedURL;