... | ... |
@@ -45,8 +45,9 @@ class Application{ |
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
public function basePath(){ |
48 |
- if(isset($this->request->path)) |
|
48 |
+ if(isset($this->request->path)&&$this->request->path==''){ |
|
49 | 49 |
return strstr($_SERVER['REQUEST_URI'], $this->request->path, true); |
50 |
+ } |
|
50 | 51 |
else |
51 | 52 |
return $_SERVER['REQUEST_URI']; |
52 | 53 |
} |