Skip to content

Commit 11e920f

Browse files
committed
history overrides: add extractOrig in case passed in URL is already rewritten, to be more flexible with rewriting issues caused elsewhere
(fixes webrecorder/pywb#886) bump to 3.7.2
1 parent 56bc2b5 commit 11e920f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webrecorder/wombat",
3-
"version": "3.7.1",
3+
"version": "3.7.2",
44
"main": "index.js",
55
"license": "AGPL-3.0-or-later",
66
"author": "Ilya Kreymer, Webrecorder Software",

src/wombat.js

+2
Original file line numberDiff line numberDiff line change
@@ -3050,6 +3050,8 @@ Wombat.prototype.overrideHistoryFunc = function(funcName) {
30503050
// in case functions rebound to different history obj!
30513051
var historyWin = this.___wb_ownWindow || wombat.$wbwindow;
30523052

3053+
url = wombat.extractOriginalURL(url);
3054+
30533055
var wombatLocation = historyWin.WB_wombat_location;
30543056
var rewritten_url;
30553057
var resolvedURL;

0 commit comments

Comments
 (0)