|
@@ -206,7 +206,12 @@ class Router {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- $uri = str_replace('(:bundle)', static::$bundle, $uri);
|
|
|
|
|
|
+ $uri = ltrim(str_replace('(:bundle)', static::$bundle, $uri), '/');
|
|
|
|
+
|
|
|
|
+ if($uri == '')
|
|
|
|
+ {
|
|
|
|
+ $uri = '/';
|
|
|
|
+ }
|
|
|
|
|
|
// If the URI begins with a wildcard, we want to add this route to the
|
|
// If the URI begins with a wildcard, we want to add this route to the
|
|
// array of "fallback" routes. Fallback routes are always processed
|
|
// array of "fallback" routes. Fallback routes are always processed
|