Skip to content
Snippets Groups Projects
Commit 8bfeea81 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(links): Change custom link managment

parent 60168a63
No related branches found
No related tags found
1 merge request!23fix(links): Change custom link managment
Pipeline #19488 failed
......@@ -35,9 +35,9 @@ const CustomLink: React.FC<EcolyoLinkProps> = ({
},
]
const appendLink = (link: LinkState) => {
const data = `<a href="{cozyUrl}${
const data = `<a href="https://cozyUrl/${
link.link
}">${link.displayTitle.toLowerCase()}</a>`
}" target="_blank">${link.displayTitle.toLowerCase()}</a>`
let { contentBlocks, entityMap } = htmlToDraft(data)
const contentState = Modifier.replaceWithFragment(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment