# HG changeset patch # User souliane # Date 1457182524 -3600 # Node ID 2aaac0605ae25042ee10f96f952058c56304bbf3 # Parent acde4b72903481d0735705529e82863bb982f111 browser (strings): fixXHTMLLinks skips internal anchors (links starting with "#") fix bug 126 diff -r acde4b729034 -r 2aaac0605ae2 src/browser/sat_browser/strings.py --- a/src/browser/sat_browser/strings.py Fri Mar 04 22:32:18 2016 +0100 +++ b/src/browser/sat_browser/strings.py Sat Mar 05 13:55:24 2016 +0100 @@ -83,7 +83,7 @@ while ((result = tag_re.exec(xhtml)) !== null) { tag = result[0]; var link_result = /href="([^"]*)"/.exec(tag); - if (link_result) { // found a link + if (link_result && !(link_result[1].startsWith("#"))) { // found a link which is not an internal anchor var link = link_result[0]; var url = link_result[1]; if (! /target="([^"]*)"/.test(tag)) { // no target