hozana / next-translate-routes

Flexible and translated routes for Next.js without custom server
MIT License
115 stars 30 forks source link

Setting ?queryparam when on root triggers refresh #35

Closed draxx318 closed 2 years ago

draxx318 commented 2 years ago

The problem occurs when trying to set a query param when on the root page on non-default locale only. Setting the query param should trigger a global component to render, instead, the page refreshes and render the component. For some reason, it requested a script that is wrong (see image).

error

It's trying to access the it.js script where it is the locale in the url.

Im setting the Href of the Link component to '?queryparam=true'

cvolant commented 2 years ago

@draxx318 I cannot reproduce that bug. Could you make a minimal reproduction?