From a3a5b99a0916212e5bea5d367f54e8a82f8be37a Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 12 Mar 2013 13:08:14 -0400 Subject: [PATCH] Simplified router configuration. --- module/VuFind/config/module.config.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index 546c01d447b..3b922a7d234 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( -- GitLab