The word “filters” in a hyper link cause the issue in RTEPlugin (AEM 6.3.0 TouchUi) | Community
Skip to main content
tushaar_srivastava
Level 6
December 27, 2019
Solved

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

  • December 27, 2019
  • 1 reply
  • 3836 views

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 @habansal 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 27, 2019

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
tushaar_srivastava
Level 6
December 30, 2019

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.