Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
RedirectableUrlMatcher needs to return a proper array with the _route…
Browse files Browse the repository at this point in the history
… parameter
  • Loading branch information
slipo committed Jun 12, 2017
1 parent 79c588d commit e6d41b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Silex/Provider/Routing/RedirectableUrlMatcher.php
Expand Up @@ -48,6 +48,7 @@ public function redirect($path, $route, $scheme = null)

return array(
'_controller' => function ($url) { return new RedirectResponse($url, 301); },
'_route' => $route,
'url' => $url,
);
}
Expand Down

0 comments on commit e6d41b8

Please sign in to comment.