From df164c4be33e5ba67d7409cad199b74c5c30d5b4 Mon Sep 17 00:00:00 2001 From: Satya Deep Maheshwari Date: Tue, 12 Nov 2024 19:15:50 +0530 Subject: [PATCH] Ensure codeBasePath is correctly set for assets plugin --- scripts/aem-assets-plugin-support.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/aem-assets-plugin-support.js b/scripts/aem-assets-plugin-support.js index 68096ab250..e98770d3cf 100644 --- a/scripts/aem-assets-plugin-support.js +++ b/scripts/aem-assets-plugin-support.js @@ -1,5 +1,6 @@ // The based path of the aem-assets-plugin code. -const codeBasePath = '/plugins/aem-assets-plugin'; + +const codeBasePath = `${window.hlx?.codeBasePath}/plugins/aem-assets-plugin`; // The blocks that are to be used from the aem-assets-plugin. const blocks = ['video'];