Get url to the H5P content from the framework
parent
c330282351
commit
537c62ab33
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue