mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
wb.js: don't include anchor when comparing current url with expected top
url
This commit is contained in:
parent
6d5592f890
commit
80c5b45178
@ -128,7 +128,10 @@ this.load = function() {
|
|||||||
window._wb_js_inited = true;
|
window._wb_js_inited = true;
|
||||||
|
|
||||||
if ((window.self == window.top) && wbinfo) {
|
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
|
// Auto-redirect to top frame
|
||||||
window.location.replace(wbinfo.top_url);
|
window.location.replace(wbinfo.top_url);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user