Log in

View Full Version : Redirect visitors using ipad+chrome


ka99
02-22-2017, 08:57 AM
Hi

I noticed a bug in ipad chrome when browsing my forum, how can I force redirect them to another url?

TIA.

PinkMilk
02-25-2017, 07:04 PM
Put somewhere in headinclude template:

<script type="text/javascript">
// detect IOS chrome
if(navigator.userAgent.match('CriOS')) {
// if match redirect to...
window.location.href = 'http:yoururlhere.com';
};</script>

ka99
02-28-2017, 12:20 PM
Put somewhere in headinclude template:

<script type="text/javascript">
// detect IOS chrome
if(navigator.userAgent.match('CriOS')) {
// if match redirect to...
window.location.href = 'http:yoururlhere.com';
};</script>

Thanks so much for the help

Regards.