You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a link to entry to a redactor rich text editor field, the locale of the selected entry is not saved. Only the id of the entry is saved and when it is shown in template or in the editor on reload it will show the url with the default locale set up in craft. I believe that it can be solved by saving the locale together with the id. {entry:5022:url} => {entry:5022:nl:url}
Steps to reproduce
Clean install of craft 2 with 2 locales (english as default and dutch f.e.)
Add RTE field that is translatable and configured to allow link
Add a link to entry
select another entry with the dutch locale
save field
reload page
The link will now point to the english url, instead of the dutch.
Used in code, the url in the textfield content will again point to the english version
Entry URLs in Rich Text fields get saved as reference tags (so that the URs stay up-to-date when entries’ URLs change), but reference tags aren’t currently localizable.
So to fix this we’d first need to make reference tags localizable. I just posted a new FR for that (#2956).
Description
When adding a link to entry to a redactor rich text editor field, the locale of the selected entry is not saved. Only the id of the entry is saved and when it is shown in template or in the editor on reload it will show the url with the default locale set up in craft. I believe that it can be solved by saving the locale together with the id. {entry:5022:url} => {entry:5022:nl:url}
Steps to reproduce
The link will now point to the english url, instead of the dutch.
Used in code, the url in the textfield content will again point to the english version
Additional info
Related to this craft 3 issue ##2006
The text was updated successfully, but these errors were encountered: