After selecting the dashboards to export, clicking export and confirming the action reloads the dashboards page instead of downloading the json file.
A json file is downloaded with the data for the selected dashboards.
The page simply reloads but no file is downloaded.
Make sure these boxes are checked before submitting your issue - thank you!
Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
As part of the research on the issue, the submitted data needs to have a query string parameter named "action" with value "go". This is not submitted. Manually appending that to the URL is a suitable workaround as shown in the attached image.

maybe you need to disable pop-up blocker in your browser ,it works for me
Are you on the latest deployed version: 0.28.1? Anyways I don't have a pop-up or ad-blocker in my browser.
yes i use version 0.28.1 , change another browser maybe will work
@mmutiso I have found the same thing in release--0.31 at b3aa5633. This code is returned by the request to export at /dashboard/export_dashboards_form?id=1:
<script>
window.onload = function() {
window.open(window.location += '&action=go', '_blank');
window.location = '/dashboard/list';
};
</script>
This code adds the action=go query parameter and opens a new window at /dashboard/export_dashboards_form?id=1&action=go which serves the download JSON. But for some reason it fails. Something goes wrong and a new window does not open. Instead the page goes directly to /dashboard/list and nothing happens.
This happened once before in #3773.
I played with this for over an hour. It actually does work 10-20% of the time. The only fix I came up with was this:
<script>
window.onload = function() {
// See issue #7353
var a = document.createElement('a');
a.href = window.location + '&action=go';
a.download = 'dashboards.json';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
window.location = '{{ dashboards_url }}';
};
</script>
It does work. I'll submit a pull and see if this passes inspection.
Most helpful comment
Issue-Label Bot is automatically applying the label
#bugto this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!Links: app homepage, dashboard and code for this bot.