Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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?

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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