Highlighted

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

Avatar

Avatar

rampai

Avatar

rampai

rampai

27-10-2016

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.

Replies

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

27-10-2016

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