Skip to content

Commit 4d06143

Browse files
authored
Merge pull request #70 from phpbb/fix/trailing-slash
Allow trailing slash for routing to ideas
2 parents 0ba3174 + 96d864b commit 4d06143

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "phpBB Ideas centre for phpBB 3.2.",
55
"homepage": "https://www.phpbb.com",
6-
"version": "2.1.5",
6+
"version": "2.1.6",
77
"license": "GPL-2.0",
88
"authors": [
99
{

config/routing.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
phpbb_ideas_index_controller:
2-
path: /ideas
3-
defaults: { _controller: phpbb.ideas.index_controller:index }
2+
path: /ideas{trailing}
3+
defaults: { _controller: phpbb.ideas.index_controller:index, trailing: '' }
4+
requirements:
5+
trailing: '/?'
46

57
phpbb_ideas_idea_controller:
68
path: /idea/{idea_id}

0 commit comments

Comments
 (0)