Commits

mitar  committed 874eaea

Made image href building more robust.

  • Participants
  • Parent commits 3f484b5

Comments (0)

Files changed (1)

File tracmath/tracmath.py

             # Touch the file to keep it live in the cache
             os.utime(imgpath, None)
 
-        result = '<img src="%s/tracmath/%s" alt="%s" />' % (req.base_url, imgname, content)
+        result = '<img src="%s" alt="%s" />' % (req.href("tracmath", imgname), content)
         if label:
             result = '<a name="%s">(%s)<a/>&nbsp;%s' % (label, label, result)
         return result