Hi guys,
I’ve been playing with 3rd party based commenting system eg. intensedebate, and disqus. The problem I am facing, and unable to resolve is, that the #anchor tags which are inserted via dynamic js from remote server in the comment links does not prefixed with the page url.
I am really not sure why its happening, but its an old issue, and for internal linking we can overcome it by using [~[*id*]~]#anchor.
But as I said, that, the js is being served by remote site after the page has loaded and modx parsing is done, how can I get it to work?
Because every comment’s anchor tag takes me to site’s homepage eg. site.com/#anchor.
-
MODX Staff
- 1,535 Posts
One possible solution would be to store the page URL as a JS variable and use something like jQuery selectors to match all the links on the page and do a selective find and replace for the lonesome anchor tags.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com