diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index d3779b48b8587cbc42a9a18023244ae5add91d6b..c85fe33d182c56a5f73c0feed5e95e4f094c81a3 100644 --- a/module/VuFind/config/module.config.php +++ b/module/VuFind/config/module.config.php @@ -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( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array(