Fix issue with web connector for pages not ending with / (#176)

This commit is contained in:
Chris Weaver
2023-07-13 22:30:10 -07:00
committed by GitHub
parent c6bcd5e1aa
commit 33463b45e8

View File

@@ -42,8 +42,6 @@ def get_internal_links(
if not is_valid_url(href):
# Relative path handling
if url[-1] != "/":
url += "/"
href = urljoin(url, href)
if urlparse(href).netloc == urlparse(url).netloc and base_url in href: