mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 20:38:32 +02:00
Fix issue with web connector for pages not ending with / (#176)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user