Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Automatically removing the link in RTE

Avatar

Avatar
Validate 1
Level 2
kalyan_chakrav1
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
kalyan_chakrav1
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
kalyan_chakrav1
Level 2

07-03-2019

Hi,

In the RTE when we are linking to their respective pages. Every time I try to add a link, if I exit out and go to edit and open the dialog ,the hyperlinks get removed in RTE. Could anyone help me on this.

Thanks & Regards,

Kalyan

Replies

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

08-03-2019

check browser console and error.log for any errors/warnings. Does that happen on an internal link or external link?

Validate linkchecker config for your project as well.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

08-03-2019

When you added this link in the Touch UI RTE - are you sure you clicked the Done button in the dialog. This saves the information.

Avatar

Avatar
Validate 1
Level 2
kalyan_chakrav1
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
kalyan_chakrav1
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
kalyan_chakrav1
Level 2

08-03-2019

Hi smacdonald2008​,

Yes I clicked on Done button and saved but still it is removing the link.

Thanks & Regards,

Kalyan

Avatar

Avatar
Validate 1
Level 2
kalyan_chakrav1
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
kalyan_chakrav1
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
kalyan_chakrav1
Level 2

08-03-2019

Hi @gauravb41175071,

We Don’t see any errors and it removing both for internal and external links.

Thanks & Regards,

Kalyan

Avatar

Avatar
Affirm 1
Level 1
shubhaga1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
shubhaga1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile
shubhaga1
Level 1

10-03-2019

Hi Kalyan,

You have to  give anonymous user access in libs to make it work, please check and confirm

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

11-03-2019

please share screenshots/logs/video in case you still face the issue

Avatar

Avatar
Boost 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
mr_chawla
Level 2

11-03-2019

Hi Kalyan,

I expect you are adding certain characters in the href attribute which your xss protection is not satisfying. I believe you might be getting error something like [1].

Please confirm.

Regards,

Sumeet Chawla.

[1]: org.apache.sling.xss.impl.HtmlToHtmlContentContext AntiSamy warning: The a tag contained an attribute that we could not process. The href attribute had a value of <some dummy value>. This value could not be accepted for security reasons. We have chosen to remove this attribute from the tag and leave everything else in place so that we could process the input.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-03-2019

Nice suggestion!