1
0
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:
Ilya Kreymer 2015-03-23 16:12:58 -07:00
parent 5020a09004
commit 5b4d12eb05

View File

@ -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);
}
}