Commits

Alain Poirier committed 0adacfb

Fixes #1298

Comments (0)

Files changed (1)

nagare/namespaces/xhtml.py

     Return:
       - an absolute URL
     """
+    if url.startswith('#'):
+        return url
+
     i = url.find(':')
     if ((i == -1) or not url[:i].isalpha()) and url and (url[0] != '/'):
         # If this is a relative URL, it's relative to the statics directory