<Link/> doesn't put anchors in url
Unanswered
European pilchard posted this in #help-forum
European pilchardOP
Hi, I'm trying to replicate some functionality from the next.js docs navigation, but I ran into this problem.
I have my link structure like this:
It works fine, it scrolls down to the anchor, but it doesn't put the anchor into the url.
The replace prop doesn't change anything btw.
I have my link structure like this:
{displaySettings.map((setting, index) => (
<Link href={`/settings/display#${setting.toLowerCase()}`} key={index} replace >
<li className="..." >
{setting}
</li>
</Link>
))}
It works fine, it scrolls down to the anchor, but it doesn't put the anchor into the url.
The replace prop doesn't change anything btw.