Skip to content
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

Issue: Incorrect order prefix #7

Open
agraciakuvut opened this issue Jan 13, 2017 · 0 comments
Open

Issue: Incorrect order prefix #7

agraciakuvut opened this issue Jan 13, 2017 · 0 comments

Comments

@agraciakuvut
Copy link

agraciakuvut commented Jan 13, 2017

$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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant