parent
2896c9fdab
commit
e8f90c9116
|
@ -691,7 +691,11 @@ H5P.getPath = function (path, contentId) {
|
||||||
|
|
||||||
var prefix;
|
var prefix;
|
||||||
if (contentId !== undefined) {
|
if (contentId !== undefined) {
|
||||||
prefix = H5PIntegration.url + '/content/' + contentId;
|
// Check for custom override URL
|
||||||
|
prefix = H5PIntegration.contents['cid-' + contentId].contentUrl;
|
||||||
|
if (!prefix) {
|
||||||
|
prefix = H5PIntegration.url + '/content/' + contentId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (window.H5PEditor !== undefined) {
|
else if (window.H5PEditor !== undefined) {
|
||||||
prefix = H5PEditor.filesPath;
|
prefix = H5PEditor.filesPath;
|
||||||
|
|
Loading…
Reference in New Issue