Skip to content

Bug: Routing group filter not working on nested or complex routes #2390

Description

@Spreizu

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions