Skip to content

Commit d2165bc

Browse files
committed
Fix for Mobile mode causing an infinite redirection loop
when no mobile layout was available.
1 parent fa0e6fc commit d2165bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/frontend/modules/default/actions/actions.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function executeSetMobileMode()
6060
{
6161
$can_be_mobile = LayoutPeer::mobileExists();
6262

63-
$this->getResponse()->setCookie('mobile_mode_set', $can_be_mobile);
63+
$this->getResponse()->setCookie('mobile_mode_set', true);
6464
$this->getUser()->setAttribute('mobile_mode', $can_be_mobile);
6565
$this->redirect('@homepage');
6666
}

0 commit comments

Comments
 (0)