I *think* we always want Horde::url() to use Horde webroot
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jul 2010 17:15:14 +0000 (11:15 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jul 2010 17:15:14 +0000 (11:15 -0600)
All of a sudden, I was getting weird redirects to URLs like
example.com/imp/imp during logins - because webroot was example.com/imp

This might be an artifact of new sidebar code (?)

If you want the application's webroot, I believe this is what
Horde::applicationUrl() is for.

framework/Core/lib/Horde.php

index e3cc772..417a7aa 100644 (file)
@@ -928,7 +928,7 @@ HTML;
             }
 
             /* Store the webroot in a local variable. */
-            $webroot = $registry->get('webroot');
+            $webroot = $registry->get('webroot', 'horde');
 
             /* Don't prepend to webroot if it's already absolute. */
             $url = preg_match('|^([\w+-]{1,20})://|', $webroot)