Merge pull request #2403 from weaveworks/2402-download-json

Fix for incorrect report.json URL in cloud
This commit is contained in:
Jordan Pellizzari
2017-03-27 14:12:36 -07:00
committed by GitHub
@@ -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 (
<div className="troubleshooting-menu-wrapper">
<div className="troubleshooting-menu">
@@ -28,7 +31,7 @@ class DebugMenu extends React.Component {
<div className="troubleshooting-menu-item">
<a
className="footer-icon"
href="api/report"
href={reportDownloadUrl}
download
title="Save raw data as JSON"
>