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

erp5_web: do not make page anchors absolute

parent d2faf2d2
...@@ -63,6 +63,8 @@ def handleHtmlTag(tag, attrs): ...@@ -63,6 +63,8 @@ def handleHtmlTag(tag, attrs):
else: else:
for i in range(len(attrs)): for i in range(len(attrs)):
if attrs[i][0] == "href" or attrs[i][0] == "src": if attrs[i][0] == "href" or attrs[i][0] == "src":
# do not make page anchors absolute
if attrs[i][1] != "" and attrs[i][1][0] != "#":
attrs[i] = attrs[i][0], makeHrefAbsolute(attrs[i][1]) attrs[i] = attrs[i][0], makeHrefAbsolute(attrs[i][1])
for i in range(len(attrs)): for i in range(len(attrs)):
if attrs[i][0] == "style": if attrs[i][0] == "style":
......
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