diff --git a/js/h5p.js b/js/h5p.js index 0e47ece..7cf7388 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -491,13 +491,10 @@ H5P.XAPIEvent.prototype.setVerb = function(verb) { } H5P.XAPIEvent.prototype.setObject = function(instance) { - // TODO: Implement the correct id(url) - - // Return dummy data... this.statement.object = { - 'id': 'http://mysite.com/path-to-main-activity#sub-activity', - 'contentId': instance.contentId, - 'reference': instance + // TODO: Correct this. contentId might be vid + 'id': window.location.origin + Drupal.settings.basePath + 'node/' + instance.contentId, + 'contentId': instance.contentId } }