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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.8
    • None
    • H5P
    • 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

              Unassigned Unassigned
              basbrands Bas Brands
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: