Get url to the H5P content from the framework

d6
Svein-Tore Griff With 2015-02-17 10:57:12 +01:00
parent c330282351
commit 537c62ab33
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ H5P.XAPIEvent.prototype.setObject = function(instance) {
this.data.statement.object = { this.data.statement.object = {
// TODO: Correct this. contentId might be vid, and this can't be Drupal // TODO: Correct this. contentId might be vid, and this can't be Drupal
// specific // specific
'id': window.location.origin + Drupal.settings.basePath + 'node/' + instance.contentId, 'id': H5PIntegration.getContentUrl(instance.contentId),
'objectType': 'Activity', 'objectType': 'Activity',
'extensions': { 'extensions': {
'http://h5p.org/x-api/h5p-local-content-id': instance.contentId 'http://h5p.org/x-api/h5p-local-content-id': instance.contentId