내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

a tag properties lowercased by default

Avatar

Level 3

AEM has some logic behind the <a> tag in which all properties put inside are lowercased, E.g.

In a JSP file:

<a someProperty="value"></a>

gets processed and transformed into this:

<a someproperty="value"></a>

which makes some front-end frameworks not work properly.

I tested this in CQ5.6.1 and AEM6.3 so I guess this issue has been around for a while for more people than just me, although I could not find any help or article pointing out proper workaround.

Any help would be much appreciated,

Regards.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 3

I eventually found a workaround by implementing a Sling Rewriter. It might not be the best approach, but since I wasn't able to find an 'easy' way of doing this (I hoped to find some OSGi bundle config that allows to configure this) it is good enough for me.

Some links that helped:

java - AEM: links transform/rewrite in a page - Stack Overflow

Mastering the Sling Rewriter

원본 게시물의 솔루션 보기

3 답변 개

Avatar

Level 9

Avatar

Level 3

Hi MC Stuff,

thanks for you reply. Are you sure sightly is the one that converts these properties into lowercase?

I mean, my HTML tag is not <sly></sly> and I actually tested this in CQ 5.6.1 without sightly and was still converting to lowercase...

Avatar

정확한 답변 작성자:
Level 3

I eventually found a workaround by implementing a Sling Rewriter. It might not be the best approach, but since I wasn't able to find an 'easy' way of doing this (I hoped to find some OSGi bundle config that allows to configure this) it is good enough for me.

Some links that helped:

java - AEM: links transform/rewrite in a page - Stack Overflow

Mastering the Sling Rewriter