How to avoid that Diazo change "#" links in Plone?

diazo, plone

Solution

This sounds like a bug in plone.app.theming, though. The relative-to-absolute parser should ignore anchor links.

Problem

I'm using Diazo with Plone 4. In one of the HTML template files I wrote a link pointing the same page, like this: ``` <a href="#">foo</a> ``` But it is rendered as: ``` <a href="/mysite/++theme++my.theme/">foo</a> ``` How I can avoid that Diazo changes the original template code or there is a specific mechanism to point the same page.

Original source