Hi,
I am able to Author Teaser Component Cta as
tel:<tel number>,
it works fine but when i move to author it as
javascript:alert('message');,
it doesn't make any href on DOM. How to achieve this using authoring only; i dont want to write custom js for this. As in LinkCheckerConfigImpl i found that tel: and javascript:, both are there in configurations.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@bhavigoyal - which AEM version are you using?
AEMaaCS
Views
Replies
Total Likes
Hi,
This is due to XSS protection. I'm not exactly sure why you'd want to add an alert into an anchor tag or what you're trying to achieve, but as long as you have a valid link, you shouldn't have any problems. If you want to add more complex links, you’ll either need to update the HTL context or overlay and adjust the XSS configuration. Please check my response here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-links-with-more-than-o...
Hope this helps
HI, I am implementing this in teaser CTA but wheb we give tel:<tel number>, in cta it open phone app but when i give javascript:alert('message');, it doesnt open alert??
Views
Replies
Total Likes
@bhavigoyal Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies