[imp] trouble using IMP in "Mobile (Smartphone/Tablet) mode after upgrade to horde 5.2.0 and imp 6.2.0

Michael M Slusarz slusarz at horde.org
Sun Jul 20 19:06:33 UTC 2014


Quoting Bruno Marsal <bruno at marsal.biz>:

> On Fri, Jul 18, 2014 at 5:04 AM, Patrick Wolf <pwolf at socorro.com> wrote:
>
>> When trying to open the "Mail" link on the interface the address bar
>> changes from
>> https://ourservername/horde/services/portal/smartmobile.php to
>> https://ourservername/horde/services/portal/smartmobile.
>> php#mailbox?mbox=SU5CT1g
>> but the browser appears to just reload the screen that shows up after
>> login. The user isn't actually taken to the mobile version of imp.
>>
>
>
> ​I assume you are running some PHP 5.3 which has issues parsing URLs with #
> and ? in this specific order. Either you upgrade your PHP version or try to
> use this fix which worked for me...
>> ​diff --git a/horde/index.php b/horde/index.php
> index ad2d01b..dad45f8 100644
> --- a/horde/index.php
> +++ b/horde/index.php
> @@ -62,7 +62,14 @@ if ($main_page) {
>  } elseif (($initial_app = $prefs->getValue('initial_application')) &&
>            ($initial_app != 'horde') &&
>            $registry->hasPermission($initial_app)) {
> -    $main_page = Horde::url($registry->getInitialPage($initial_app), true);
>
> +                $main_page = Horde::url(rtrim($initial_app, '/') . '/',
> true);
>  } elseif ($registry->getView() == Horde_Registry::VIEW_SMARTMOBILE) {
>      $main_page = $registry->getServiceLink('portal');
>  } elseif (($initial_page = $registry->getInitialPage('horde')) &&
>
This doesn't work, since the anchor information in the URL is needed  
to redirect to the correct mailbox.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list