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

anchor links in rich text are not rewriting the urls in publish when hovering but works after clicking

Avatar

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
prajaktak281725
Level 1

18-01-2019

Hi All,

We are facing issue while authoring the content i.e anchors in the rich text. After authoring and publishing the page, the hrefs are showing the path of urls containing /content/<company-name>/.... while hovering on the links. For example, please see the below screenshot.

capture.png

In this example, after hovering on the custom, the url contains the path having /content/<company-name>/usa/.....

But it should be www.<company-name>.com/usa-en/.

After clicking on the link, it is redirecting properly.

Can anyone help us to get it resolved?

Thanks,

Prajakta

Replies

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

18-01-2019

IS this OOTB behavior - or have you modified any RTE code?

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

18-01-2019

Avatar

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
prajaktak281725
Level 1

18-01-2019

Yes this OOTB behavior and we have not modified anything for RTE

Avatar

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
prajaktak281725
Level 1

18-01-2019

we are using classic UI

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

18-01-2019

As Scott mentioned, use Externalizing URLs to rewrite the urls for publish servers per your use case. You would have to write code/configurations to make it happen.

Today, if they work after clicking then that must be because of rewrite/redirect rules configured in /etc/map/http or apache. You would need to configure it on publish so that the cached content contains the updated urls per your requirement.

Avatar

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
prajaktak281725
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
prajaktak281725
Level 1

19-01-2019

The first hyperlink i.e url for standard is working as expected hence I feel we shouldn't be using externalizer. We are facing this issue only for RTE components having hyperlink and not with any other call to action components.  Please find the below screenshot for DOM of this content.

<p>ANTENNAS</p>

<p> </p>

<p><a href="https://forums.adobe.com/content/<company-name>/<country>/<language>/pages/products/antennas/standard-antennas.html">Standard</a>, <a href="https://forums.adobe.com/content/<company-name>/<country>/<language>/products/antennas/custom-antennas.html">Custom</a></p>

<p><br>

<br>

</p>

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

19-01-2019

It seems that you guys are already using either OOB externalizer or Link Checker Transformer or custom url-rewriting utility because the same content is exposed by /content/<company>/<country>/</language>/page1.html and /content/<company>/<country>-</language>/page1.html which happens only at publish server (if not at apache) for entire site. I noticed that the cached content has updated urls.

Now the issue happens with RTE only because it doesn't fall under the project's code boundaries as it is available OOB. When you add CTA's, your project code takes care of rewriting the urls from /<country>/</language>  to /<country>-</language>.

One of the solutions would be to customize OOB RTE and enforce the url conversion in that or use a custom Transformer to rewrite specific <a:hrefs> of your project based on requirements & feasibility.

HTH