craftcms / redactor

Edit rich text content in Craft CMS using Redactor by Imperavi.
https://plugins.craftcms.com/redactor
MIT License
100 stars 48 forks source link

[3.x]: Site dropdown in Reactor's Edit Link modal not working as expected #410

Closed robmcfadden closed 2 years ago

robmcfadden commented 2 years ago

What happened?

Description

On a Craft multi-site, when adding a link in a Redactor field, that link points to the site it was added from even when viewing a different site on the frontend. I think this probably the expected behavior.

When editing the link on a different site, though, there is a Site dropdown menu in the Edit Link modal and it seems like changing the selected Site here should update the site on the frontend. It add something like "#entry:45@46:url@45" to the end of the URL, but doesn't actually change the destination, therefore switching Sites on the user when they click it. The solution is to Unlink the link on the other site and re-add the link, being sure the select the same site from the Dropdown menu in the page selector HUD when doing so.

Question: Is the Site dropdown in the Edit Link modal working as expected?

Craft CMS version

3.7.39

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

brandonkelly commented 2 years ago

Thanks for reporting! Redactor 2.10.9 and 3.0.1 are out with a fix for this.