Skip to content

Commit

Permalink
remove optional trailing slashes from routes
Browse files Browse the repository at this point in the history
  • Loading branch information
mamuz committed Jun 14, 2014
1 parent b52efe0 commit 1f886fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'blogActivePosts' => array(
'type' => 'segment',
'options' => array(
'route' => '/blog[/[:tag][/[p/:page[/]]]]',
'route' => '/blog[/:tag][/p/:page]',
'constraints' => array(
'tag' => '[a-zA-Z0-9_-]*',
'page' => '[1-9][0-9]*',
Expand All @@ -21,7 +21,7 @@
'blogActivePost' => array(
'type' => 'segment',
'options' => array(
'route' => '/blog/post[/[:id][/[:title[/]]]]',
'route' => '/blog/post[/:id][/:title]',
'constraints' => array(
'id' => '[a-zA-Z0-9]{9,}',
'title' => '[a-zA-Z0-9_+%-]+',
Expand Down

0 comments on commit 1f886fc

Please sign in to comment.