Skip to content

Issue: Incorrect order prefix #7

@agraciakuvut

Description

@agraciakuvut
$route->group(['before' => ['urltest'], 'prefix' => '{url:[a-zA-Z0-9-_=]+}'], function (Router $route) {
    $route->group(['before' => 'checkActionShare', 'prefix' => 'share'], function (Router $route) {
        $route->group(['before' => 'checkTypeform', 'prefix' => 'typeform/{id:[0-9]+}'], function (Router $route) {
            $route->get('/{hash:[a-zA-Z0-9-_=]+}/',
                [Typeform::class, 'getShare'])->setName("typeformShare");
        });
    });
});

En este ejemplo una url válida debería ser:

/alvityl/open/typeform/81/

Pero la que da como válida es:

/open/alvityl/typeform/81/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions