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

Allow rendering of h5p files when $CFG->slasharguments = false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8
    • Fix Version/s: None
    • Component/s: H5P
    • Labels:
    • Affected Branches:
      MOODLE_38_STABLE

      Description

      The core_h5p player (/h5p/embed.php) expects url's to be formatted using slash arguments.

      A valid h5p iframe src= could look something like this:

      http://nucky.fritz.box/h5p_skel/h5p/embed.php?url=http://nucky.fritz.box/h5p_skel/pluginfile.php/31/mod_resource/content/1/arithmetic-quiz.h5p&export=1 

      When Moodle's global setting $CFG->slasharguments = false

      The url param changes from

      http://nucky.fritz.box/h5p_skel/pluginfile.php/31/mod_resource/content/1/arithmetic-quiz.h5p 

      to

      http://nucky.fritz.box/h5p_skel/pluginfile.php?file=%2F31%2Fmod_resource%2Fcontent%2F2%2Farithmetic-quiz.h5p 

      The player needs to be updated to allow URL's without slasharguments

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              basbrands Bas Brands
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: