From bdea399a5af962df575ade82f7f7b2f9bd78578d Mon Sep 17 00:00:00 2001 From: jpellizzari Date: Mon, 27 Mar 2017 12:31:34 -0700 Subject: [PATCH] Fix for incorrect report.json URL in cloud --- client/app/scripts/components/troubleshooting-menu.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/app/scripts/components/troubleshooting-menu.js b/client/app/scripts/components/troubleshooting-menu.js index 9da47f9ca..3babf9a7c 100644 --- a/client/app/scripts/components/troubleshooting-menu.js +++ b/client/app/scripts/components/troubleshooting-menu.js @@ -20,6 +20,9 @@ class DebugMenu extends React.Component { } render() { + const reportDownloadUrl = process.env.WEAVE_CLOUD + ? `${window.location.origin}/api${window.location.pathname}/api/report` + : 'api/report'; return (
@@ -28,7 +31,7 @@ class DebugMenu extends React.Component {