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

href-to should respect current state query parameters #36

Open
bekharsky opened this issue Apr 7, 2016 · 0 comments
Open

href-to should respect current state query parameters #36

bekharsky opened this issue Apr 7, 2016 · 0 comments

Comments

@bekharsky
Copy link

Useful for combined filters. For example:

default route params:
tag: 'all',
from: '2016-04-07',
to: '2016-04-08',
fav: 'yes'

current state route params:
tag: 'vip',
from: '2016-04-01',
to: '2016-04-02',
fav: ''

How link-to works:

    {{link-to
      'prev'
      'games'
      (query-params from=ydEx to=ydTo)}}

result url: games?from=2016-04-06&to=2016-04-07&fav=&tag=vip

How equivalent href-to works:

<a href='{{href-to 'games' (query-params from=ydEx to=ydTo)}}'>prev</a>

result url: games?from=2016-04-06&to=2016-04-07&fav=yes&tag=all

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