diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index 546c01d447b1113bd4db22adafd9ef25aa2957c3..3b922a7d234634cf6c112e6f651ffa8d52d6c453 100644 --- a/module/VuFind/config/module.config.php +++ b/module/VuFind/config/module.config.php @@ -7,7 +7,7 @@ $config = array( 'default' => array( 'type' => 'Zend\Mvc\Router\Http\Segment', 'options' => array( - 'route' => '/[:controller[/:action]]', + 'route' => '/[:controller[/[:action]]]', 'constraints' => array( 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', @@ -18,19 +18,6 @@ $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(