From b0f53bca2a9d7923899754ac52d47d87f974a646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Bouazza?= Date: Wed, 26 Mar 2025 21:39:30 +0100 Subject: [PATCH] Error when trying to download attachments from page, multiple hosts in url --- atlassian/confluence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/confluence.py b/atlassian/confluence.py index 0b7a07ef2..aaa66bf53 100644 --- a/atlassian/confluence.py +++ b/atlassian/confluence.py @@ -1468,7 +1468,7 @@ def download_attachments_from_page(self, page_id, path=None, start=0, limit=50, downloaded_files = {} for attachment in attachments: file_name = attachment["title"] or attachment["id"] # Use attachment ID if title is unavailable - download_link = self.url + attachment["_links"]["download"] + download_link = attachment["_links"]["download"] # Fetch the file content response = self.get(str(download_link), not_json_response=True)