diff --git a/lib/front/front.class.php b/lib/front/front.class.php index d1baf1f243..ce610cb391 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -497,6 +497,13 @@ EOT; */ static public function locate($url, $target = "self") { + /* If the url if empty, goto the home page. */ + if(!$url) + { + global $config; + $url = $config->webRoot; + } + $js = self::start(); if(strtolower($url) == "back") {