From 537c62ab3320734f334717336aa2534cd2062f9c Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Tue, 17 Feb 2015 10:57:12 +0100 Subject: [PATCH] Get url to the H5P content from the framework --- js/h5p-x-api-event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p-x-api-event.js b/js/h5p-x-api-event.js index 2d8e24e..e6fba9b 100644 --- a/js/h5p-x-api-event.js +++ b/js/h5p-x-api-event.js @@ -81,7 +81,7 @@ H5P.XAPIEvent.prototype.setObject = function(instance) { this.data.statement.object = { // TODO: Correct this. contentId might be vid, and this can't be Drupal // specific - 'id': window.location.origin + Drupal.settings.basePath + 'node/' + instance.contentId, + 'id': H5PIntegration.getContentUrl(instance.contentId), 'objectType': 'Activity', 'extensions': { 'http://h5p.org/x-api/h5p-local-content-id': instance.contentId