Skip to content

Commit 13c0ab0

Browse files
committed
Major BugFix in routes now accept query strings without any customizations
1 parent 82b2559 commit 13c0ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/libs/Tools/Util/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Router {
6666

6767
public function __construct($routes, $url = NULL, $uri = NULL) {
6868
$this->baseUrl = $url == NULL ? explode('/', $_SERVER['SCRIPT_NAME']) : explode('/',$url);
69-
$this->queryUrl = $uri == NULL ? explode('/', $_SERVER['REQUEST_URI']) : explode('/',$uri);
69+
$this->queryUrl = $uri == NULL ? explode('/', $_SERVER['PATH_INFO']) : explode('/',$uri);
7070

7171
$this->urlDiff = array_diff_assoc($this->queryUrl, $this->baseUrl);
7272

0 commit comments

Comments
 (0)