diff --git a/backend/app/api/v1/shares.py b/backend/app/api/v1/shares.py index b5d9c8b..e303f65 100644 --- a/backend/app/api/v1/shares.py +++ b/backend/app/api/v1/shares.py @@ -474,6 +474,7 @@ async def get_project_share_file( ensure_share_access(share, request, password) file_path = storage_service.get_secure_path(project.storage_key, path) content = await storage_service.read_file(file_path) + content = rewrite_markdown_assets(content, f"/api/v1/shares/project/{share.share_code}/assets") return success_response(data={"content": content}) @@ -573,7 +574,7 @@ async def get_file_share_content( }) content = await storage_service.read_file(file_path) - content = rewrite_markdown_assets_for_pdf(content) + content = rewrite_markdown_assets(content, f"/api/v1/shares/files/{share.share_code}/assets") return success_response(data={ "type": "markdown", "filename": Path(share.file_path).name,