Hello! I was on the way to close pc case minutes ago, but before to do i’ve click on an external board link on the test install i have open on browser… i see that the code fail if a link is passed in the way the code is suggested, and point to a wordpress url within same domain (but external by wp page forum). So i delay the session stop of 5 min to fix…
The suggested code for overall_footer.html to resolve was:
// check if link point to external resource
if ((this.href.indexOf(w3all_doc_domain) > -1) != true){
if(/^(f|ht)tps?:\/\//i.test(href)){
e.preventDefault(); // prevent load as we are inside
parent.location.replace(href);
return;
}
}
but it need to be this instead:
// check if link point to external resource
if ((this.href.indexOf(boardU) > -1) != true){
if(/^(f|ht)tps?:\/\//i.test(href)){
e.preventDefault(); // prevent load as we are inside
parent.location.replace(href);
return;
}
}
the check need to be done against var boardU and NOT against var w3all_doc_domain
substantially change w3all_doc_domain with boardU in the proper line: now it is correct code.
Cheers
p.s also line
parent.location(href);
need to be
parent.location.replace(href);
if you may copied wrong code for overall_footer.html last days.
-
This reply was modified 6 years, 3 months ago by
axew3.