HTML: Link with relative target leads to unexpected address

HTML: Link with relative target leads to unexpected address

在此站点上:http://www.nice2cu.de/testzugang/底部有 links,如 Impressum、Kontakt 等,它们在其 href 字段中具有相对路径:

<a href="impressum/">Impressum</a>

我们在子文件夹 testzugang/ 中,所以我希望 link 会导致 http://www.nice2cu.de/testzugang/impressum. In reality, my browser opens http://www.nice2cu.de/impressum, without the subfolder. In fact the adress http://www.nice2cu.de/testzugang/impressum returns 404 错误,所以它不是浏览器中的错误,它是意味着通往那个地址。怎么会?我错过了什么吗?

唯一可能的解释是您有类似 <base href="http://www.nice2cu.de/"> 更改计算相对 URL 的路径。