Does anyone know if there is a special rule that needs to be added to .htaccess in order for links to pages with an anchor reference to work? ie:
http://www.whatever.com/mypage.html#anchor
From the googling I’ve done it seems like this problem relates to mod_rewrite and how it’s unable to handle a direct link to a page with an anchor because same-page anchors are handled locally by the browser.
And yet, I see that in the modx forums you can copy a link to a particular message: ie:
http://modxcms.com/forums/index.php/topic,whatever.msg1111.html#msg1111 (this doesn’t actually go anywhere.. just giving as an example) and you can go directly to it.
When I try it with my site instead it takes you to the page, but not to the anchor on the page. If I highlight the address in the browser and press enter again, then it will jump down to the anchor.
So the problem is when it first loads the page, it will not jump down to the anchor. Then if I reload the page then it will jump down to the anchor.
Anyone have experience with this?