From d76483f73f54c7a0aac9d28b11dcce3df8f283d3 Mon Sep 17 00:00:00 2001 From: jpellizzari Date: Mon, 4 Jun 2018 13:35:18 -0700 Subject: [PATCH] Fix scope report download URL --- client/app/scripts/components/troubleshooting-menu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/app/scripts/components/troubleshooting-menu.js b/client/app/scripts/components/troubleshooting-menu.js index 2a62b07bf..0af4e29d5 100644 --- a/client/app/scripts/components/troubleshooting-menu.js +++ b/client/app/scripts/components/troubleshooting-menu.js @@ -6,6 +6,7 @@ import { resetLocalViewState, clickDownloadGraph } from '../actions/app-actions'; +import { getApiPath } from '../utils/web-api-utils'; class DebugMenu extends React.Component { constructor(props, context) { @@ -21,7 +22,7 @@ class DebugMenu extends React.Component { render() { const reportDownloadUrl = process.env.WEAVE_CLOUD - ? `${window.location.origin}/api${window.location.pathname}/api/report` + ? `${getApiPath()}/api/report` : 'api/report'; return (