## haslink to id/section on page

3 messages · Page 1 of 1 (latest)

quasi raft
#

I'm trying to link to different section within the same page from a Header component:
<Link href='#work' scroll={false}> <Link href={'#about'}>About</Link>
Both of these change the url to /#<section> but the UI doesn't change.
If I refresh with /#about in the url it takes me there.
I have tried with and without 'use client' in Header.tsx

What's going on and how do I make it navigate to the different sections?

tawdry parrot
#

@quasi raft use <a> for this.

#

next/link is not meant to be a complete replacement for <a>