Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to entry does not store locale in rich text editor (redactor) #2945

Closed
jurriaanr opened this issue Jun 2, 2018 · 2 comments
Closed
Labels
bug severity:minor Cosmetic issues or bugs with simple workarounds

Comments

@jurriaanr
Copy link

jurriaanr commented Jun 2, 2018

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

  1. Clean install of craft 2 with 2 locales (english as default and dutch f.e.)
  2. Add RTE field that is translatable and configured to allow link
  3. Add a link to entry
  4. select another entry with the dutch locale
  5. save field
  6. 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

Additional info

  • Craft version: 2.6.3015
  • PHP version: all versions
  • Database driver & version: all versions
  • Plugins & versions: clean install

Related to this craft 3 issue ##2006

@brandonkelly
Copy link
Member

brandonkelly commented Jun 4, 2018

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).

@brandonkelly brandonkelly added bug severity:minor Cosmetic issues or bugs with simple workarounds labels Jun 4, 2018
@brandonkelly
Copy link
Member

brandonkelly commented Jul 2, 2021

This was resolved in Craft 3.4 + Redactor 2.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity:minor Cosmetic issues or bugs with simple workarounds
Projects
None yet
Development

No branches or pull requests

2 participants