When inserting a code example with
href="# in the editor (so not in HTML-mode), MODX will add the page alias of the page on which the code is displayed.
is modified on the frontend to
How can this be stopped? Same happens with TinyMCE