Allow for href='' in fix_relative_text_links processing.

This commit is contained in:
Jim Miller 2023-06-12 16:47:54 -05:00
parent 1683d950c3
commit 25ebc603e7

View file

@ -679,7 +679,7 @@ class BaseSiteAdapter(Requestable):
## URL.
if self.getConfig('fix_relative_text_links'):
for alink in soup.find_all('a'):
if alink.has_attr('href'):
if alink.has_attr('href') and alink['href']: # Saw some links with href=""
## hrefurl now also the flag for been-handled / needs-handled
hrefurl = None
toppath=""