You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The paths on the Server for paella_logo.png is determined by calling paella.utils.folders.get('resources') without honoring paella.baseUrl.
slide_professor_paella.jpg, icon_rotate.svg and minimize.svg are loaded through CSS without any reference to paella.baseUrl.
others use paella.utils.folders.(profiles|resources|skins)() that prefix the path with paella.baseUrl.
This causes HTTP 404s when Paella is not installed in the root of the web application, for instance on https://github.com/studer-raimann/OpenCast/tree/master/node_modules/paellaplayer where Paella is served from /ilias.php?ref_id=IL_REF_ID&eid=UUID&cmd=streamVideo&cmdClass=xoctplayergui&cmdNode=uh:n4:158:15j&baseClass=ilrepositorygui while the code of Paella resides in /Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/node_modules/paellaplayer/.
To get a complete path, you have to use these functions together with paella.baseUrl, which contains the URL where the current .html file is located, and is automatically initialized at upload time:
let fulResourceUrl = `${paella.baseUrl}/${paella.utils.folders.get("resources")}/`
paella_logo.png
is determined by callingpaella.utils.folders.get('resources')
without honoringpaella.baseUrl
.slide_professor_paella.jpg
,icon_rotate.svg
andminimize.svg
are loaded through CSS without any reference topaella.baseUrl
.paella.utils.folders.(profiles|resources|skins)()
that prefix the path withpaella.baseUrl
.This causes HTTP 404s when Paella is not installed in the root of the web application, for instance on https://github.com/studer-raimann/OpenCast/tree/master/node_modules/paellaplayer where Paella is served from
/ilias.php?ref_id=IL_REF_ID&eid=UUID&cmd=streamVideo&cmdClass=xoctplayergui&cmdNode=uh:n4:158:15j&baseClass=ilrepositorygui
while the code of Paella resides in/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/node_modules/paellaplayer/
.with relevant code being:
With the following result (several navigational images missing):
Is this something that should be fixed in Paella?
The text was updated successfully, but these errors were encountered: