Skip to content

Commit

Permalink
Fix: Error when clicking on reference links. (#647)
Browse files Browse the repository at this point in the history
- Remove leading slash from S3 object key when generating pre-signed URLs.
  • Loading branch information
Yukinobu-Mine authored Dec 13, 2024
1 parent db176ff commit 5fea6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/repositories/models/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def get_source_link_for_schema(self) -> str | None:
if url.scheme == "s3":
source_link = generate_presigned_url(
bucket=url.netloc,
key=url.path,
key=url.path.removeprefix("/"),
client_method="get_object",
)
return source_link
Expand Down

0 comments on commit 5fea6e4

Please sign in to comment.