Code: Select all
'U_COPPA_NO' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register&coppa=0'),
'U_COPPA_YES' => 'https://www.google.com',
Code: Select all
'U_COPPA_NO' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register&coppa=0'),
'U_COPPA_YES' => 'https://www.google.com',
Disable the extension that is opening in a new window would be the obvious answer
That doesn't quite make sense but I think I understand you anyway. It would just look better to me if the redirect opened in the same window. It just looks silly opening in a new tab, imo. Is there no way around it?
What I mean is, if they click one answer and it doesn't let them in, they'll just go back a page and click the other answer instead. So it's a little bit moot as to how it takes them to google.Bruce Banner wrote: ↑Sat May 27, 2017 2:48 pmThat doesn't quite make sense but I think I understand you anyway. It would just look better to me if the redirect opened in the same window. It just looks silly opening in a new tab, imo. Is there no way around it?
I understand. Like I said, it's just a matter of how it looks to me.KevC wrote: ↑Sat May 27, 2017 4:46 pmWhat I mean is, if they click one answer and it doesn't let them in, they'll just go back a page and click the other answer instead. So it's a little bit moot as to how it takes them to google.Bruce Banner wrote: ↑Sat May 27, 2017 2:48 pmThat doesn't quite make sense but I think I understand you anyway. It would just look better to me if the redirect opened in the same window. It just looks silly opening in a new tab, imo. Is there no way around it?
Code: Select all
if(hostname && removeSubdomain(hostname)!==source)
{
window.open(href);
return false;
}
Code: Select all
if(hostname && removeSubdomain(hostname)!==source)
{
if (href == "https://www.google.com")
{
window.location = "https://www.google.com";
}
else {
window.open(href);
}
return false;
}