AlexsLemonade / refinebio-web

Refinebio Web
https://staging.web.refine.bio
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Use the router method for button links used for route change #132

Closed nozomione closed 1 year ago

nozomione commented 1 year ago

Context

Currently thehref attribute is used for button links. However, for internal routes (non-external urls), we need to trigger the Next.js router event.

Problem or idea

Button links' href attribute should be replaced with the router method for internal routes so that the route change event will be fired on page change.

Solution or next step

Update all the button links for internal routes to use the router method.