1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

wb.js: don't include anchor when comparing current url with expected top

url
This commit is contained in:
Ilya Kreymer 2014-12-13 23:12:42 -08:00
parent 6d5592f890
commit 80c5b45178

View File

@ -128,7 +128,10 @@ this.load = function() {
window._wb_js_inited = true;
if ((window.self == window.top) && wbinfo) {
if (wbinfo.top_url && (window.location.href != wbinfo.top_url) && wbinfo.mod != "bn_") {
var loc = window.location.href.replace(window.location.hash, "");
if (wbinfo.top_url && (loc != wbinfo.top_url) && wbinfo.mod != "bn_") {
// Auto-redirect to top frame
window.location.replace(wbinfo.top_url);
} else {