Skip to content

Commit

Permalink
Merge pull request #70 from phpbb/fix/trailing-slash
Browse files Browse the repository at this point in the history
Allow trailing slash for routing to ideas
  • Loading branch information
DavidIQ authored Sep 7, 2017
2 parents 0ba3174 + 96d864b commit 4d06143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "phpBB Ideas centre for phpBB 3.2.",
"homepage": "https://www.phpbb.com",
"version": "2.1.5",
"version": "2.1.6",
"license": "GPL-2.0",
"authors": [
{
Expand Down
6 changes: 4 additions & 2 deletions config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
phpbb_ideas_index_controller:
path: /ideas
defaults: { _controller: phpbb.ideas.index_controller:index }
path: /ideas{trailing}
defaults: { _controller: phpbb.ideas.index_controller:index, trailing: '' }
requirements:
trailing: '/?'

phpbb_ideas_idea_controller:
path: /idea/{idea_id}
Expand Down

0 comments on commit 4d06143

Please sign in to comment.