function showurl(url)
{
var htmlOutput = HtmlService.createHtmlOutput('<a href="' + url + '">On this link</a>').setWidth(250).setHeight(250);
SpreadsheetApp.getUi().showModalDialog(htmlOutput, 'Download the JSON');
}
With our workflow, the script creates a JSON from the Google Sheet that it puts in a Google Drive folder and then proceeds to get its download link and display it on the HTML output so we can download it directly.
It was working super well before, but for some reason, without any modification, it stopped working recently and instead we get an error in the HTML output when we click the link.
Does any of you have an idea why or a way to fix this?
Thanks in advance