Currently, diazo appends absolute prefix also for relative urls starting with "#". It prevents designers from linking local anchors in theme, when absolute prefix is defined.
This patch would define a wrapper around urlparse.urljoin, which calls urljoin only when the given url doesn't start with '#'.
Test included. All tests for diazo and plone.app.theming seem to pass.
Fixed to not apply absolute prefix for relative urls starting with '#'.
Thanks for this!
Could we call the function something other than urljoin? It's a bit confusing since that name is commonly understood from the standard library.
Refactored to not mix anchor_safe_urljoin with regular urljoin and us…
…e it only when necessary.
Thanks. The patch should be much cleaner now. -Asko