Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3897

Links (<a>) to files: first time opened in browser

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: File system
    • Labels:
    • Affected Branches:
      MOODLE_39_STABLE
    • Sprint:
      Moodle App 4.0

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dpalou Dani Palou
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: