Nextjs Link tag points to same page causes a Refresh
问题 If the user is on the Home page, clicking on the Home Page option in the Header Menu will cause a refresh and loads the same page. Using <Link as='/homepage' href='/landing'>Home Page</Link> inside the Header Layout and also a custom server to server all the URL requests. 回答1: Here is my sample code, here I have used react-router-dom instead of next.js Basically I have 3 functional component Home, Page1 and Page2 and Inside App.js I keep my route import React, { Component } from "react";