-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Routing group filter not working on nested or complex routes #2390
Comments
Me too: GET /api/v1/first/100/second
|
this problem can resolve by line:
|
I have done further testing and can add, that this problem occurrs when {locale} is specified as group name. If, for example, I replace '{locale}' with 'test', then the filter is working. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example routes, where filter is not being applied:
Nested:
$routes->group('{locale}', function($routes) { $routes->group('admin', ['filter' => 'require-admin'], function($routes) { $routes->get('/', 'AdminDashboard::index'); }); });
Not nested, but more complex group:
$routes->group('en/admin', ['filter' => 'require-admin'], function($routes) { $routes->get('/', 'AdminDashboard::index'); });
If group is simple (containing only admin), then filter is working.
The text was updated successfully, but these errors were encountered: