Browse Source

Remove double base path when parsing current full url

Mathieu de Ruiter 11 years ago
parent
commit
7e32ea53b3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Routing/Router.php

+ 2 - 2
src/Routing/Router.php

@@ -569,9 +569,9 @@ class Router
         }
 
         if (empty($url)) {
-            $output = isset($here) ? $here : '/';
+            $output = isset($here) ? $here : $base . '/';
             if ($full) {
-                $output = static::fullBaseUrl() . $base . $output;
+                $output = static::fullBaseUrl() . $output;
             }
             return $output;
         } elseif (is_array($url)) {