Identical anchor ids on two pages: How to link from one page to the anchor on the other page

I have two websites page1 and page2. On every page there is a download form which I can access through the anchor id #DownloadForm.

On page1 I’d like to create a link to the download form on page2. I thought this would work:

Read More
<a href="/page2#DownloadForm"></a>

But when clicking on this link (in Chrome) it takes me to the download form on page1. As if the anchor expression was evaluated first and then the rest of the href is ignored.

Btw: I’m using WordPress but I guess that’s not relevant here.

If anyone has a hint for me, I’d highly appreciate!

Related posts

Leave a Reply

1 comment