RTE appends .html to links on Content Fragment. what should I do to remove .html from link? | Community
Skip to main content
Level 2
April 1, 2024
Solved

RTE appends .html to links on Content Fragment. what should I do to remove .html from link?

  • April 1, 2024
  • 1 reply
  • 634 views

When using relative links, .html is added to the link when setting the link in a content fragment. What should I do to resolve it?

 

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 rk_pandian

Hello @zeeltr1,

 

Can you pls explain which field are you adding to store relative links? I tested by adding "Content Reference" field and selected an internal page and I didn't see any .html in the JSON output. Please see the blow:

 

"content": {
            "variationsOrder": [],
             "translatable": false,
             ":type": "string",
             "variations": {},
             "dataType": "string",
             "title": "Field Label",
             "multiValue": false,
             "value": "/content/wknd/us/en"
}

 

You can quickly verify the output by using AEM's asset API and excluding /content/dam from the path.

http://localhost:<port>/api/assets/<path-to-content-fragment>.json

1 reply

rk_pandian
rk_pandianAccepted solution
Level 4
April 2, 2024

Hello @zeeltr1,

 

Can you pls explain which field are you adding to store relative links? I tested by adding "Content Reference" field and selected an internal page and I didn't see any .html in the JSON output. Please see the blow:

 

"content": {
            "variationsOrder": [],
             "translatable": false,
             ":type": "string",
             "variations": {},
             "dataType": "string",
             "title": "Field Label",
             "multiValue": false,
             "value": "/content/wknd/us/en"
}

 

You can quickly verify the output by using AEM's asset API and excluding /content/dam from the path.

http://localhost:<port>/api/assets/<path-to-content-fragment>.json