I have a link in my Next.js app that looks like this:
This link is obviously supposed to navigate to the element with id
projects, and it woks locally, on Vercel, and on Heroku, but for some reason on Netlify, it just reloads the page.
When trying to open it in a new tab, it works, but no on the same tab.
Hi @hewar-saber , thanks for the post and Welcome to the Netlify Support Forums.
If you have not tried using the Next.js Link component already, kindly use it to see if it resolves the problem.
import Link from 'next/link'
Kindly check the Official Next.js Documentation page for more details.
Let me know the outcome.
Thank you though!
Hiya, thanks for writing back in about your solution! Glad you were able to resolve this.