Replies: 5 comments 2 replies
-
I completely agree. I don't understand what's the point of passing |
Beta Was this translation helpful? Give feedback.
-
This seems like a bug to me, since next.js/packages/next/client/link.tsx Lines 661 to 665 in ab328c6 This code acknowledges child can be an Even if child is not an |
Beta Was this translation helpful? Give feedback.
-
This definitely looks like a bug: the |
Beta Was this translation helpful? Give feedback.
-
This is not a bug, the default was changed to always render the
|
Beta Was this translation helpful? Give feedback.
-
I have spent a good amount of time trying to figure out why passing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
Some components might be rendered as an
a
tag ifhref
attribute is provided eg. https://developer.microsoft.com/en-us/fluentui#/controls/web/button#row621-15 . This is problem in Next.js v13.In Next.js v12, this…
…rendered like this:
In Next.js v13 this is not true. It is rendered like this:
The
legacyBehavior
prop is required to make thepassHref
behaviour work again. What are plans with this?Describe the solution you'd like
Add back
passHref
prop tonext/link
so this…… is rendereded like this:
Describe alternatives you've considered
The codemod for next/link provided the
legacyBehavior
.Beta Was this translation helpful? Give feedback.
All reactions