mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 09:42:11 +00:00
@@ -396,7 +396,7 @@ class Router
|
|||||||
|
|
||||||
/* Return current route if no options has been specified */
|
/* Return current route if no options has been specified */
|
||||||
if ($name === null && $parameters === null) {
|
if ($name === null && $parameters === null) {
|
||||||
return '/' . trim(parse_url($this->request->getUri(), PHP_URL_PATH), '/') . '/' . $this->arrayToParams($getParams);
|
return '/' . trim(parse_url($this->request->getUri(), PHP_URL_PATH), '/') . $this->arrayToParams($getParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If nothing is defined and a route is loaded we use that */
|
/* If nothing is defined and a route is loaded we use that */
|
||||||
@@ -434,8 +434,7 @@ class Router
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* No result so we assume that someone is using a hardcoded url and join everything together. */
|
/* No result so we assume that someone is using a hardcoded url and join everything together. */
|
||||||
|
return '/' . trim(join('/', array_merge((array)$name, (array)$parameters)), '/') . $this->arrayToParams($getParams);
|
||||||
return '/' . trim(join('/', array_merge((array)$name, (array)$parameters)), '/') . '/' . $this->arrayToParams($getParams);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user