Keeping queryParams while changing dynamic segment


#1

I have a route with dynamic segment: route 'myroute', path: 'myroute/:segment'

Corresponding controller has bunch of queryParams as well.

What I want to do is to create such links that would keep current queryParams on transition, like:

link-to 'myroute' 'something' (query-params ???)

Any clues how to do that? Thanks!