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

Fixed routing configuration: default route with action and trailing slash did not resolve.

parent a368e20e
No related merge requests found
...@@ -18,6 +18,19 @@ $config = array( ...@@ -18,6 +18,19 @@ $config = array(
), ),
), ),
), ),
// TODO: can we address all three default route situations (install, install/, install/home) with
// a single route definition? Currently, we need this case to address trailing slash + missing action.
'default-without-action' => array(
'type' => 'Zend\Mvc\Router\Http\Regex',
'options' => array(
'regex' => '/(?<controller>[a-zA-Z][a-zA-Z0-9_-]*)(/?)',
'defaults' => array(
'controller' => 'index',
'action' => 'Home',
),
'spec' => '/%controller%',
),
),
'legacy-alphabrowse-results' => array( 'legacy-alphabrowse-results' => array(
'type' => 'Zend\Mvc\Router\Http\Literal', 'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array( 'options' => array(
......
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