Library / Asset path being relative to node url

Created on 8 May 2025, 8 days ago

Problem/Motivation

Upon having an H5P content on a node with a url path of /node/xxx, (or any path with more than 1 argument) getRelativeH5PPath() sets all the libraries and assets for the iframe to src="node/sites/default/files/...". Which leads to lots of 404 not founds.

Proposed resolution

See patch.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chertzog Harrisburg, PA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024