symphonists/mobiledevicedetection

Infinite loop out of the box

Closed this issue · 1 comments

I just install the extension, and set in preferences the redirect url to /mobile/.

This results my iPhone to get an infinite redirect-loop :-/

Any thoughts on how to fix this?

I solved deleting the line 132 in extension.driver.php and adding this

$addressbar = $_SERVER['REQUEST_URI'];
$pos = strpos($addressbar,'/mobile/');
if($can_redirect && $pos === false) redirect($url);

Not the best solution, but works.