ZijianHe / koa-router

Router middleware for koa.
MIT License
4.85k stars 407 forks source link

One problem with Router.url() #519

Closed yinyukang-cuc closed 3 years ago

yinyukang-cuc commented 4 years ago

When run the following code ,the result is not the same as it:

const url = Router.url('/users/:id', {id: 1}, {query: { active: true }});

Expected Result:

// => "/users/1?active=true"

Actual Result:

/users/1