Linking to anchors

I have anchors on my index page for each note, like:

<a href="#{{ .Title | urlize }}”>Permalink</a>

That worked well when the site was just one very long index file, but it was getting slow, so I implemented pagination, and doing so breaks that anchoring (a note on main index will eventually move to a page, thus no longer /#test-note, but /pages/2/#test-note, and so on). Is there a way to create these type of anchors that will “survive” pagination? I see it as an impossibility, but thought it was worth asking.

To make sure I understand this, on your site, the visible “permalink” points to an item on a list page, instead of pointing to the content page itself?

Yes. I ended up using JavaScript to handle the redirects, as anchor links are client driven.