mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
wombat: fix wombat_location.href assign when url is already rewritten, compare against current url not passed in url
fixes ikreymer/pywb-webrecorder#9
This commit is contained in:
parent
5020a09004
commit
5b4d12eb05
@ -296,7 +296,7 @@ _WBWombat = (function() {
|
||||
}
|
||||
this.assign = function(url) {
|
||||
var new_url = rewrite_url(url);
|
||||
if (new_url != url) {
|
||||
if (new_url != this._orig_href) {
|
||||
return this._orig_loc.assign(new_url);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user