diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-26 19:59:44 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-26 19:59:44 -0800 |
commit | 0de067312e375fae00d63b99d280aa796f043c22 (patch) | |
tree | ac4893ab7bcd58a7bd3247c61bfb7939aed3f1ff /modules/gallery | |
parent | accd00464e2d7e1d1fd0e24e1ee583a7baa73611 (diff) |
Add a routing that allow add and edit form requests to be routed the same way as non admin forms. i.e. a uri of /form/add/admin/<controller>/parms gets routed as admin/<controller/form_add/<parms>
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/config/routes.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/config/routes.php b/modules/gallery/config/routes.php index 63cc6150..8ccd5a01 100644 --- a/modules/gallery/config/routes.php +++ b/modules/gallery/config/routes.php @@ -21,6 +21,10 @@ // Admin controllers are not available, except via /admin $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"; + // Redirect /form/add and /form/edit to the module/form_(add|edit)/parms. $config["^form/(edit|add)/(\w+)/(.*)$"] = "$2/form_$1/$3"; |