Skip to content

Commit 2cc0d77

Browse files
felixbouazzaFélix Bouazza
andauthored
Error when trying to download attachments from page, multiple hosts in url (#1516)
Co-authored-by: Félix Bouazza <[email protected]>
1 parent d02241a commit 2cc0d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/confluence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def download_attachments_from_page(self, page_id, path=None, start=0, limit=50,
14681468
downloaded_files = {}
14691469
for attachment in attachments:
14701470
file_name = attachment["title"] or attachment["id"] # Use attachment ID if title is unavailable
1471-
download_link = self.url + attachment["_links"]["download"]
1471+
download_link = attachment["_links"]["download"]
14721472
# Fetch the file content
14731473
response = self.get(str(download_link), not_json_response=True)
14741474

0 commit comments

Comments
 (0)