Next-routes: handle query strings

Created on 21 Mar 2017  路  2Comments  路  Source: fridays/next-routes

how would i handle a route like this domain.com/search?q=foo. Creating a link <Link route="search" params={{ q: search }}> does the right think when clicked but the adressbar only shows domain.com/search.

Most helpful comment

It works like this now, please update to 1.0.20

All 2 comments

Good question! Currently this is not possible. We could change it so that any parameters that are not part of the route definition would be added as query string to the decorated URL. Would that be a good solution?

It works like this now, please update to 1.0.20

Was this page helpful?
0 / 5 - 0 ratings