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

(fixes webrecorder/pywb#886)
bump to 3.7.2
  • Loading branch information
ikreymer committed Feb 23, 2024
1 parent 56bc2b5 commit 11e920f
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 11e920f

Please sign in to comment.