# HG changeset patch # User theaspect@gmail.com # Date 1370079191 -25200 # Node ID 5e0c6589d13461c903f5493b7d191cb8c126b0d9 # Parent 6df57370d35c6069906798599b5ed8aa70724a81 Ignore url replace in inner links starts with hash diff -r 6df57370d35c -r 5e0c6589d134 __init__.py --- a/__init__.py Sat Jun 01 16:28:38 2013 +0700 +++ b/__init__.py Sat Jun 01 16:33:11 2013 +0700 @@ -90,7 +90,7 @@ def rebase(proc, e, attr): uri = e.get(attr, '') - if '://' in uri or uri.startswith('/'): + if '://' in uri or uri.startswith('/') or uri.startswith('#'): return base = base_url if attr == 'src': @@ -146,7 +146,7 @@ def rebase(proc, e, attr): uri = e.get(attr, '') - if '://' in uri or uri.startswith('/'): + if '://' in uri or uri.startswith('/') or uri.startswith('#'): return base = base_url if attr == 'src':