Netlify - Next.js - Link ##


I’m having an issue with the links used in Next.js.

The idea is that when I click on a link that has an ID, it should directly navigate to the sections containing that ID.

The problem is that when I click on one of the links that directs to “/conectate#…” , the link only takes me to the beginning of the page, and the ID is no longer present in the URL.

Steps to reproduce the problem:

  1. In the menu, find the text “conectate”, which displays a menu, where you will find the links with ids
  2. A dropdown menu will appear with options numbered according to the Next.js documentation. [Components: | Components: <Link> | Next.js
  3. Despite clicking on any of the options, all of them only take me to the beginning of the page and not to the corresponding section.

I would greatly appreciate any help to resolve this issue. Thank you!

Duplicate: Netlify - Next.js - Link # - Support - Netlify Support Forums

1 Like