diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-05 08:21:14 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-05 08:21:14 -0700 |
commit | e4d397d30118a3d673b146c44ed329efa08bbefe (patch) | |
tree | c7eeaf00e78b87411d75dbe997dc3dd10658b265 /modules/gallery | |
parent | 60126adc7e73ec6e70ee5033abf5032ac6b88305 (diff) |
Make the trailing slash on the url optional. Sometimes it is not there, so the regex doesn't match
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/config/routes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/config/routes.php b/modules/gallery/config/routes.php index 55d3cf6c..e1ea9612 100644 --- a/modules/gallery/config/routes.php +++ b/modules/gallery/config/routes.php @@ -23,10 +23,10 @@ $config["^admin_.*"] = null; // Redirect /form/add/admin/controller and /form/edit/admin/controller to // admin/controller/form_(add|edit)/parms. provides the same as below for admin pages -$config["^form/(edit|add)/admin/(\w+)/(.*)$"] = "admin/$2/form_$1/$3"; +$config["^form/(edit|add)/admin/(\w+)/?(.*)$"] = "admin/$2/form_$1/$3"; // Redirect /form/add and /form/edit to the module/form_(add|edit)/parms. -$config["^form/(edit|add)/(\w+)/(.*)$"] = "$2/form_$1/$3"; +$config["^form/(edit|add)/(\w+)/?(.*)$"] = "$2/form_$1/$3"; // Default page is the root album $config["_default"] = "albums"; |