Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Hyperlink creation fail for encrypted URL in Rich Text Editor component

Avatar

Level 2

Hyperlink creation fail for encrypted URL in Rich Text Editor component

When i try to create a Hyperlink using a RichTextEditor component its fail for Encryped URL links?

URL's with %20 in it fails?

I tried to decode the URL  and used the decoded URL  to create Hyperlink, But still it fails.

Does AEM  allows to create a Hyperlink for Encrypted URL's links.

Any help in this regard is really helpfull.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

 Generally Java/AEM does not itself encode or decode any URL according to the escaping mechanism defined in RFC2396. It is the responsibility of the caller/author to encode any fields, which need to be escaped prior to storing/calling URL. The oracle statement at [1] & holds good here also.   However there was product bug where sidekick was breaking because of that & the bug CQ-30149 has been logged.  If you want authors to allow % then at project level write own transformer.


[1] http://docs.oracle.com/javase/7/docs/api/java/net/URL.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

 Generally Java/AEM does not itself encode or decode any URL according to the escaping mechanism defined in RFC2396. It is the responsibility of the caller/author to encode any fields, which need to be escaped prior to storing/calling URL. The oracle statement at [1] & holds good here also.   However there was product bug where sidekick was breaking because of that & the bug CQ-30149 has been logged.  If you want authors to allow % then at project level write own transformer.


[1] http://docs.oracle.com/javase/7/docs/api/java/net/URL.html