Problem/Motivation

If there is a translated node to which we link, the function ckeditor_link_ckeditor_link_node_url always gets the language from the node and not the one we are visiting the page in ($langcode is a parameter)
and overrides it. Therefore we always got node links from the "first" node language which was always the same.

Proposed resolution

Check if the language is available and only if not, load the default one from the node.

Just a quick fix...

CommentFileSizeAuthor
ckeditor_link_languages_1.patch630 bytesLukyLuke_ch

Comments

fhelms’s picture

i tried your patch - but its not working for me.
the link renders only the first 2 characters of the localized path - resulting in 404 errors.