From 814b922a6d16f9a0b37295b65acc19b19faaa43e Mon Sep 17 00:00:00 2001 From: Uwe Ilgenstein Date: Tue, 19 Mar 2024 16:54:33 +0100 Subject: [PATCH] fix initial path for h5p editor --- static/scripts/topicEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/scripts/topicEdit.js b/static/scripts/topicEdit.js index 1865c3b438..b930666340 100644 --- a/static/scripts/topicEdit.js +++ b/static/scripts/topicEdit.js @@ -1065,7 +1065,7 @@ class TopicH5P extends TopicBlock { const { parentType, parentId } = this.props; const editorPopup = window.open( - `/h5p/editor/${id ?? ''}?parentType=${parentType}&parentId=${parentId}&inline=1`, + `/h5p/editor/${id ?? 'new'}?parentType=${parentType}&parentId=${parentId}&inline=1`, 'h5p-editor', `width=${w}, height=${h}, left=${x}, top=${y}, fullscreen=yes, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes`,