Skip to content

Routing problem /sth-abc->App:sth/foo (ok) and /sth/abc->App:sth/foo (nok) #799

Description

@nowackipawel

I tried to use normal strings instead of parameters ($1) in controller calling.
$routes->get('/sth-abc', 'App::sth/foo', ['subdomain'=>'']);
$routes->get('/sth/abc', 'App::sth/foo', ['subdomain'=>'']);

In the case route is defined as: '/sth-abc', everything works as expected - www.host.com/sth-abc shows page returned by App::sth with foo as first parameter. In the second case when route is '/sth/abc' www.host.com/sth/abc returns 404.

I'm not sure if it is bug, because there is no example like this in docs but it can be a useful feature.

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