Only remove scheme and host if we don't want a full URL.
authorJan Schneider <jan@horde.org>
Thu, 20 Jan 2011 10:08:01 +0000 (11:08 +0100)
committerJan Schneider <jan@horde.org>
Thu, 20 Jan 2011 10:08:01 +0000 (11:08 +0100)
wicked/lib/Wicked.php

index f67096e..05f5b45 100644 (file)
@@ -82,7 +82,9 @@ class Wicked
         }
 
         $url = Horde::url($script, $full, array('append_session' => $append_session));
-        $url->url = preg_replace('|^([a-zA-Z][a-zA-Z0-9+.-]{0,19})://[^/]*|', '', $url->url);
+        if (!$full) {
+            $url->url = preg_replace('|^([a-zA-Z][a-zA-Z0-9+.-]{0,19})://[^/]*|', '', $url->url);
+        }
 
         return $url;
     }