summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-13 13:42:00 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-13 13:42:00 -0700
commit8065ab023df7a1bfb1534bbcdba8586b411a577d (patch)
tree638a09ae8838a38b739ceae58fc9d955d5d12189 /modules
parent297f98fcee9d45d49f0d2bebfd22aabc7af4c60b (diff)
Revert "Fix for ticket #1182. Remove the trailing slash and just let it be matched by the trailing (.*) group"
This breaks adding new albums. I get the following in my error log: "2010-07-13 13:08:46 -07:00 --- error: Kohana_404_Exception [ 43 ]: The page you requested, form/add/albums/1?type=album&g-in-dialog, could not be found." This reverts commit cb4e18f9dddd82a283f0208c694a9b4eb1a2eaca.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/config/routes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/config/routes.php b/modules/gallery/config/routes.php
index aa5d152b..55d3cf6c 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";