public function executeRedirect()
 {
     $request = sfContext::getInstance()->getRequest();
     //symfony 1.0 compatibility
     jfPortableDevice::setIsPortableDevice(true);
     jfPortableDevice::setAppType('web');
     jfPortableDevice::setDeviceSize($this->getDeviceSize());
     $redirectUrl = $request->getParameter('redirectUrl', $this->getController()->genUrl(jfPortableDevice::getConfig('startUrl'), true));
     $redirectUrl = jfPortableDevice::extendUrl($redirectUrl);
     $this->redirect($redirectUrl, 302);
     throw new sfStopException();
 }
 public function executeRedirect()
 {
     $request = sfContext::getInstance()->getRequest();
     //symfony 1.0 compatibility
     jfPortableDevice::setIsPortableDevice(true);
     jfPortableDevice::setAppType('web');
     jfPortableDevice::setDeviceSize($this->getDeviceSize());
     $redirectUrl = $request->getParameter('redirectUrl', $this->getController()->genUrl(jfPortableDevice::getConfig('startUrl')));
     if ($redirectUrl[0] !== '/') {
         throw new jfPortableDeviceSecurityException('redirectUrl ' . $redirectUrl . ' rejected: only URLs starting with "/" allowed.');
     }
     $redirectUrl = $request->getUriPrefix() . $redirectUrl;
     $redirectUrl = jfPortableDevice::extendUrl($redirectUrl);
     $this->redirect($redirectUrl, 302);
     throw new sfStopException();
 }