Expand my Community achievements bar.

SOLVED

The word “filters” in a hyper link cause the issue in RTEPlugin (AEM 6.3.0 TouchUi)

Avatar

Level 7

I am facing an issue with hyperlink in RTE (AEM6.3.0), when i started using filter/search query along with my URL, 

 

Problem i am facing : I made a hyper link for "Test" with this url https://test.com/campaigns?type=2&filters={%22audience%22:{%22value%22:[2]}} and then I saved and opened it in preview , after that we come back and reopen component then that hyperlink has become invisible/disappear,(i.e hyperlink is visible on "Test" at single instance only).

So, now here if we Author the RTE with text and hyperlink with Filter/search query URL, and click on ok, we are not able to see the text as Hyperlink when we gave Filter/search query in URL.

 

Expected Behavior: URLs with filter/search query should work same as the URLs without filter/search query.

 

So, please help me to achieve the text with Hyperlink in which URL consist of filter/search query.

I am using AEM6.3.0

 

Thanks

@kautuk_sahni @arunpatidar @hanishb17637780 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

It is removing the href because of invaild URL format. the characters { and } are not valid for urls.

You can override this rule by overlay and update /libs/cq/xssprotection/config.xml 

 

Though word filter, works in URLs, try with https://test.com/campaigns?type=2&filters=3

 



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

It is removing the href because of invaild URL format. the characters { and } are not valid for urls.

You can override this rule by overlay and update /libs/cq/xssprotection/config.xml 

 

Though word filter, works in URLs, try with https://test.com/campaigns?type=2&filters=3

 



Arun Patidar

Avatar

Level 7

But now open the RTE dialog and give hyperlink to some text with filter, click ok

Now again come to Dialog Open RTE select the same hyperlink. that hyperlink will not appear in dialog,

for other URL in which no filter is there that hyperlink url will retain as is, but URL with filter will removed.

Avatar

Level 7

Like if you go to : https://docs.adobe.com/content/help/en/experience-manager-65/administering/operations/rich-text-edit...
and Ctrl+F : Hyperlinks are lost when editing a component

there is a solution but is that the proper or permanent solution, or need help with any alternative.