Permit trailing slashes in discussion/user URLs

closes #334
This commit is contained in:
Toby Zerner 2015-08-31 14:43:42 +09:30
parent 9024cabcb3
commit f606dc7020

View File

@ -67,13 +67,13 @@ class ForumServiceProvider extends ServiceProvider
);
$routes->get(
'/d/{id:\d+(?:-[^/]*)?}[/{near}]',
'/d/{id:\d+(?:-[^/]*)?}[/{near:[^/]*}]',
'flarum.forum.discussion',
$this->action('Flarum\Forum\Actions\DiscussionAction')
);
$routes->get(
'/u/{username}[/{filter}]',
'/u/{username}[/{filter:[^/]*}]',
'flarum.forum.user',
$this->action('Flarum\Forum\Actions\ClientAction')
);