fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

handle query strings #12

Closed philipheinser closed 7 years ago

philipheinser commented 7 years ago

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.

fridays commented 7 years ago

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?

fridays commented 7 years ago

It works like this now, please update to 1.0.20