From 05f2a53df4b555f1fdaded5213af80fed4bc0907 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 9 Jul 2010 11:15:14 -0600 Subject: [PATCH] I *think* we always want Horde::url() to use Horde webroot 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index e3cc7720d..417a7aac5 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -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) -- 2.11.0