Needs review
Project:
CKEditor Link
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2014 at 11:07 UTC
Updated:
15 Oct 2014 at 17:27 UTC
Jump to comment: Most recent
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.
Check if the language is available and only if not, load the default one from the node.
Just a quick fix...
| Comment | File | Size | Author |
|---|---|---|---|
| ckeditor_link_languages_1.patch | 630 bytes | LukyLuke_ch |
Comments
Comment #1
fhelms commentedi 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.