mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Fix for incorrect report.json URL in cloud
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user