href链接每次单击新链接时都会复制路径中的文件夹



我有这个文件夹结构

frontend -index.html 
         -about.html
         -map.html 

然后我访问他们的链接如下

 <a href="./frontend/about.html"  class="btn btn-lg btn-secondary" >Learn more</a>
<a class="nav-link" href="./frontend/page2.html"> Map <span class="sr-only">

然而,如果我点击第二个链接,url显示如下

Cannot GET /frontend/frontend/about.html

不确定我做错了什么,第一次点击会把我带到带有正确url的页面,然后随后的点击只会复制文件夹名称

删除点:href="/frontend/about.html"

最新更新