Skip to content

Commit

Permalink
Make the trailing slash on the url optional. Sometimes it is not ther…
Browse files Browse the repository at this point in the history
…e, so the regex doesn't match
  • Loading branch information
Tim Almdal committed Jul 5, 2010
1 parent 60126ad commit e4d397d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gallery/config/routes.php
Expand Up @@ -23,10 +23,10 @@

// 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";

0 comments on commit e4d397d

Please sign in to comment.