Skip to content

Commit

Permalink
Include route params when assembling
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksleight committed Jul 27, 2016
1 parent 70d0090 commit fbdd4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function reverse($name, array $params = array())
}

$route = $this->_routes[$name];
$params = $params + $this->_params;
$params = $params + $route['params'] + $this->_params;
$parts = explode('/', $route['path']);
$path = [];
foreach ($parts as $i => $part) {
Expand Down

0 comments on commit fbdd4b7

Please sign in to comment.