Skip to content
Snippets Groups Projects
Commit 4a1f8ebf authored by Demian Katz's avatar Demian Katz
Browse files

Make record routes tolerant of trailing slashes.

parent 4014c585
No related merge requests found
...@@ -132,7 +132,7 @@ class RouteGenerator ...@@ -132,7 +132,7 @@ class RouteGenerator
$config['router']['routes'][$routeBase] = [ $config['router']['routes'][$routeBase] = [
'type' => 'Zend\Mvc\Router\Http\Segment', 'type' => 'Zend\Mvc\Router\Http\Segment',
'options' => [ 'options' => [
'route' => '/' . $controller . '/[:id[/:tab]]', 'route' => '/' . $controller . '/[:id[/[:tab]]]',
'constraints' => [ 'constraints' => [
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment