My WordPress site is set up with “Post name” permalinks.
Now I created an anchor in every page at a certain place:
But I find that when I try to link to that page, and its anchor, like this:
http://example.com/mypost#my_anchor
.. it doesn’t work. The URL gets converted on the fly to:
http://example.com/mypost/#my_anchor
… so the link never goes to the correct part of the page.
Anyone know what I’m doing wrong – how to correct this?
(Note: I did see a very similar question where someone had this a problem after they put an extra slash on the end, after the anchor part, but I’m not doing that.)
Thanks.
PS It doesn’t work if I use a div with an id instead of the anchor, either.