- Status changed to Closed: outdated
10 months ago 10:41pm 9 February 2024 - π¨π¦Canada shaundychko
After applying the patch here π Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work , to use H5P 1.26 on the 2.0.x-dev version of this module, there doesn't seem to be an issue with serving over SSL. I also couldn't find any URL's starting with 'http://' hardcoded in the module folder. It doesn't seem like this patch is necessary any more.
- π³πΏNew Zealand lightweight
Ok - after upgrading my D9 site to D10.2.6, I've run into the same problem with http:// being used for H5p javascript assets. The fix that worked for me is a modification of the above H5PDrupal.php_.patch updated via this: https://www.drupal.org/node/2940031 β
- return array_map(function($publicUrl){ return \Drupal::service('file_url_generator')->generateAbsoluteString($publicUrl); }, array_column($cachedAsset, 'data')); + return array_map(function($publicUrl){ return \Drupal::service('file_url_generator')->generateString($publicUrl); }, array_column($cachedAsset, 'data'));
It just involves removing the 'Absolute' from generateAbsoluteString.