You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The useHref function passed to RouterProvider is not being called for synthetic links.
In our Next.js app this results in the data-href attribute missing the base path. Meaning when using CMD + left click to open the link in a new tab the URL is missing the base path.
Provide a general summary of the issue here
The
useHref
function passed toRouterProvider
is not being called for synthetic links.In our Next.js app this results in the
data-href
attribute missing the base path. Meaning when usingCMD
+ left click to open the link in a new tab the URL is missing the base path.Looks like it was forgotten in #5864
🤔 Expected Behavior?
The base path is prepended to the
data-href
attribute😯 Current Behavior
Using
CMD
+ left click to open a synthetic link in a new tab results in an invalid URL.💁 Possible Solution
Use
useHref
when setting thedata-href
attribute.🔦 Context
No response
🖥️ Steps to Reproduce
CMD
+ left click to open the link in a new tabVersion
[email protected]
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
If other, please specify.
No response
What operating system are you using?
MacOS, Windows
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: