Expand my Community achievements bar.

Can we debug JS files written using JavaScript use api in AEM 6.1?

Avatar

Level 6

I have an issue wherein the extension ".html" has been appended to an authorable url in code. But I want this to be dynamic. As in if the Url already has ".html" authored then I need to keep it as it is and if it is relative like /content/geometrixx then only append. But when I am trying to put some alert or debugger the component is getting hidden on the page. There are no errors in console. How do I debug this issue? I can't see the source file on the browser sources.

1 Reply

Avatar

Level 10

WHy use JavaScript when you can use Java and WCMUsePojo to create HTL components: 

https://helpx.adobe.com/experience-manager/using/first_htl_WCMUsePojo.html