Fixed absolute URLs violating its parent.

d6
Frode Petterson 2015-02-27 10:55:47 +01:00
parent 1e4a7ff26f
commit 77d589ec68
1 changed files with 2 additions and 1 deletions

View File

@ -459,7 +459,8 @@ H5P.getPath = function (path, contentId) {
} }
if (!hasProtocol(prefix)) { if (!hasProtocol(prefix)) {
prefix = window.parent.location.protocol + "//" + window.parent.location.host + prefix; // Use absolute urls
prefix = window.location.protocol + "//" + window.location.host + prefix;
} }
return prefix + '/' + path; return prefix + '/' + path;