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

Relative links to internal activities are not encoded correctly during backup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.4
    • Fix Version/s: None
    • Component/s: Backup
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      If a teacher manually adds some activity links as relative urls (e.g. '/mod/forum/view.php?id=4852581') to any text in the course (e.g. section description), then these links will be pointing to an old activities after backup and restore process.

      It looks like most of the activities  expect links to be full URLs to be able to encode/decode them on backup/restore. 

      Also as per Damyon Wiese comment in the dev telegram channel "links in content that do not include the domain name won't work when the content is served from a different location (e.g. in the mobile app)"

      So if we know that moodle behaves this way we probably should somehow prevent users to use relative urls or at least warn somehow... Or it could be different solution.

        Attachments

          Activity

            People

            • Assignee:
              dmitriim Dmitrii Metelkin
              Reporter:
              dmitriim Dmitrii Metelkin
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: