Skip to content

Commit

Permalink
history overrides: add extractOrig in case passed in URL is already r…
Browse files Browse the repository at this point in the history
…ewritten, to be more flexible with rewriting issues caused elsewhere (#138)

(fixes most significant issue in webrecorder/pywb#886)
bump to 3.7.2
  • Loading branch information
ikreymer authored Feb 24, 2024
1 parent 56bc2b5 commit 00c46c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/wombat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00c46c4

Please sign in to comment.