-
Improvement
-
Resolution: Fixed
-
Minor
-
3.9.5
-
-
MOODLE_39_STABLE
-
MOODLE_400_STABLE
-
Moodle App 4.0
When we render a link (<a>) to a file created by a user in Moodle, the app downloads the file in background and leaves the online URL in the anchor. If the user clicks this link, it will be opened in browser and the browser will start the download. This means the user will download the file twice: once inside the app and once in browser.
IMO we shouldn't open the browser in this case. Once the file is downloaded, we should update the link to use the local URL. If the user clicks the link while the file is being downloaded, we should display a loading modal and, once downloaded, open it in the app.