The situation is something like this:
<a href="#" onclick="doSomething(); return false;">Click here</a>
If user is too fast and clicks the link before javascript has loaded MODx tries to load a page at www.example.com/#.
So the question is how to prevent MODx to interpret # as an page address?
I remember seeing a solutions for this somewhere in this forum but I can’t seem to find it anymore.