Skip to content

route_to function working incorrect #975

Description

@phambinh217

My routes

$routes->get('posts/(:any)/(:any)', 'Post::index/$2', ['as' => 'post-with-slug']);

When I use

route_to('post-with-slug', '2', '3');

I want to result is domain.com/posts/2/3

But now result is domain/posts/2/2

What am I doing wrong, or it is a bug?

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