Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dbae660

Browse files
Fix issue #5
1 parent 2efd8c4 commit dbae660

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎System/Router/Router.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ private function getMatchRoutersByPattern($pattern) {
126126
/**
127127
* dispatch url and pattern
128128
*/
129-
public function dispatch($url, $pattern) {
129+
public function dispatch($uri, $pattern) {
130+
$parsUrl = explode('?', $uri);
131+
$url = $parsUrl[0];
132+
130133
preg_match_all('@:([\w]+)@', $pattern, $params, PREG_PATTERN_ORDER);
131134

132135
$patternAsRegex = preg_replace_callback('@:([\w]+)@', [$this, 'convertPatternToRegex'], $pattern);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /