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

Re-enable relative links in URL resource (input type="url")

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.1
    • Fix Version/s: None
    • Component/s: Resource
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      I currently cannot create a URL resource with a relative url (e.g. "/my" to get to the Dashboard), because in-browser HTML validation of input[type='url'] requires a valid absolute URL.

      This makes relative URLs impossible to submit on some browsers (e.g. Firefox 60, Firefox 70.0b1 , Chrome 76).

      Although the mod_url validation explicitly allows relative links, because it uses the 'url' form element the HTML produced is an input element with type="url", and the browser validation prevents submission.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            balchd Dave Balch
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: