In AEM landing page feature, we are using relative path in JS file.For example loadFile(js/chapter1/1.json, true);.
Relative path in HTML files are automatically handled and converted into absolute path (etc/.../js...).
Is there any way to handle relative to absolute path conversion for the uploaded JS file?