fridays / next-routes

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

How to update window location on Link click? #9

Closed foxhound87 closed 7 years ago

foxhound87 commented 7 years ago

It seems that clicking on the Link component, the window location in the browser address bar is not updated.

What's the best approach to make it working without break SSR? Is this feature supported by the next-routes package?

Thank You.

fridays commented 7 years ago

Hey, it should work as you expect, clicking the link should update the address bar. The Link component only generates the URL and passes the right arguments to the original next.js Link component. Can you show some code where the problem happens?

foxhound87 commented 7 years ago

I made it working. I was using the router names wrongly.