Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63599

Behaviour of URL resource set to "Auto" is not optimum

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.9, 3.4.4
    • Fix Version/s: None
    • Component/s: Resource, Usability
    • Labels:
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_34_STABLE

      Description

      When creating a simple URL link resource in a section, if the appearance display is set to "Auto" the URL does not open when clicked on; but displays a second page containing the URL link.

      This is sub-optimal because the best UX with simple, straightforward URLs is just to open them - either in the same windows/tab or in a new window/tab. Having to click again to open them is not helpful.

      The reason why this happens is mainly because of the interaction between:

       

      1. /mod/url/locallib.php->url_get_final_display_type($url)

      and

      1. /lib/resourcelib.php->resourcelib_guess_url_mimetype($fullurl)

       

      where 2 determines the mime-type as "text/html" and 1 has "text/html" defined as a "download" type of URL, resulting in url_print_workaround being used - and this function displays the link on another page.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              raad Raad Al-Rawi
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Barbara Ramiro, Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: