Commit 7933f41f authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web: do not make page anchors absolute

parent d2faf2d2
......@@ -63,7 +63,9 @@ def handleHtmlTag(tag, attrs):
else:
for i in range(len(attrs)):
if attrs[i][0] == "href" or attrs[i][0] == "src":
attrs[i] = attrs[i][0], makeHrefAbsolute(attrs[i][1])
# do not make page anchors absolute
if attrs[i][1] != "" and attrs[i][1][0] != "#":
attrs[i] = attrs[i][0], makeHrefAbsolute(attrs[i][1])
for i in range(len(attrs)):
if attrs[i][0] == "style":
attrs[i] = attrs[i][0], replaceCssUrl(attrs[i][1])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment