just realised that the TOCs on the documentation section (e.g. http://modxcms.com/usercomments.html) don´t work. They seem to be created by a JS (btw: why?), which doesn´t build the correct anchor/URL.
Problem solved. I made a few modifications to the source code, using MadeMyDays window.location.href as well as a few tricks of my own, to get it working again.