From 625b9393104cdcb253e30f7ee8277ad619a8ca98 Mon Sep 17 00:00:00 2001 From: Bennie Rosas Date: Tue, 29 Oct 2024 00:54:31 -0500 Subject: [PATCH] ensure the correct http/s protocol is used in report overview (#1832) --- client-report/src/components/overview.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/client-report/src/components/overview.js b/client-report/src/components/overview.js index f61b5778f..be51fcc53 100644 --- a/client-report/src/components/overview.js +++ b/client-report/src/components/overview.js @@ -125,7 +125,8 @@ const Overview = ({ {`--------Summary: `} {getDownloadFilename("summary", conversation)} @@ -134,7 +135,8 @@ const Overview = ({ {`-------Comments: `} {getDownloadFilename("comments", conversation)} @@ -144,7 +146,8 @@ const Overview = ({ {`--Votes history: `} {getDownloadFilename("votes", conversation)} @@ -154,7 +157,8 @@ const Overview = ({ {`---Votes matrix: `} {getDownloadFilename("participant-votes", conversation)} @@ -165,16 +169,16 @@ const Overview = ({ Public API endpoints (read only, Jupyter notebook friendly)

- {`$ curl http://${window.location.hostname}/api/v3/reportExport/${report_id}/summary.csv`} + {`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/summary.csv`}

- {`$ curl http://${window.location.hostname}/api/v3/reportExport/${report_id}/comments.csv`} + {`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/comments.csv`}

- {`$ curl http://${window.location.hostname}/api/v3/reportExport/${report_id}/votes.csv`} + {`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/votes.csv`}

- {`$ curl http://${window.location.hostname}/api/v3/reportExport/${report_id}/participant-votes.csv`} + {`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/participant-votes.csv`}

{doShowDataLicenseTerms && (