I'm struggling with some weird things.
When I insert a link in my rich text editor it translate the value fine. But the href gets updated with the frontpage document id and title
<trans-unit resname="html" id="html_49" datatype="Html">
<source><![CDATA[<p>Dansk tekst med et link <a href="/{localLink:umb://document/10b3682a676c4b02963764538ebec825}" title="Priser">læs mere her</a></p>]]></source>
<target><![CDATA[<p>English text with a link <a href="/{localLink:umb://document/10b3682a676c4b02963764538ebec825}" title="Prices">Read more here</a></p>]]></target>
</trans-unit>
The result is this link Wrong title and wrong document
<p>English text with a link <a href="/{localLink:umb://document/2189c97c8b0f428c8b5671015cc84726}" title="/da/">Read more here</a></p>
when you approve a translation - translation manager will run all links through its link updater. that will attempt to find the relevant link on the translated site.
e.g
if you have a "prices" page on both the main and translated site, all links to the main prices page will be updated to the translates site prices page.
except it does look like thats not working here - it might be because the link between the prices page on the main site and the translated site doesn't exist ? or isn't part of the translation set?
are you doing in place(so using variants) translations or do you have a site structure for each language?.
the default behavior should be not to change the link if it finds not relation, i suspect there is another relation between the prices node that is being picked up and used.
If you don't need link updating (i.e all your pages are in the variant setup) you can turn it off. in translations.config (config section)
Link attributes in rich text editor
Hi,
I'm struggling with some weird things. When I insert a link in my rich text editor it translate the value fine. But the href gets updated with the frontpage document id and title
The result is this link Wrong title and wrong document
Umbraco: v8.9.1 TM: 8.4.2
Hi,
when you approve a translation - translation manager will run all links through its link updater. that will attempt to find the relevant link on the translated site.
e.g if you have a "prices" page on both the main and translated site, all links to the main prices page will be updated to the translates site prices page.
except it does look like thats not working here - it might be because the link between the prices page on the main site and the translated site doesn't exist ? or isn't part of the translation set?
are you doing in place(so using variants) translations or do you have a site structure for each language?.
Hi Kevin,
It's a variant translation.
My job only contain one page - Do I need to include all linked pages to the job ?
Is the default behaviour to show the root node if the link updater fails ?
Hi,
the default behavior should be not to change the link if it finds not relation, i suspect there is another relation between the prices node that is being picked up and used.
If you don't need link updating (i.e all your pages are in the variant setup) you can turn it off. in translations.config (config section)
(will require site restart once you've edited this file)
or you can look at 'fixing' the relationships by using the Linked Pages package which will show you want related links exist between pages. https://our.umbraco.com/packages/backoffice-extensions/linked-pages/
Hi Kevin,
Thanks - It worked beautifully :-)
🎉 Woot!!
is working on a reply...