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

Site model in edit link dialog isn't switching with the currently selected site, causing issues #412

Closed
bencresty opened this issue Jun 1, 2022 · 4 comments
Labels

Comments

@bencresty
Copy link

Description

I just had to re-enter a lot of links because I was unaware this site selection dropdown actually wasn't automatically selecting the current selected site. Which was, sorry for the description, incredibly frustrating and shouldn't be necesary as Craft knows what site (in this case locale) we're on and it wouldn't make much sense to select another site to enter an entry as a link from (at least not per default).

IMO the dropdown when adding a link to a site entry in the redactor field should ALWAYS be on the current selected site for new links. Only when there was already a link and we are editing it later it would make sense to use the previously selected site for the existing link as a default in the site dropdown in that insert link dialog.

The way it is now is prone to errors and needs all kinds of unnecesary actions by content editors, so really hope this could get a fix soon!

Steps to reproduce

  1. Hava a multi-site setup with redactor fields (on this site they are within matrix blocks)
  2. Go to a site that's not the first/default site
  3. Enter text in the redactor field, select a text and hit 'insert link to entry'
  4. Look at the site dropdown inside the dialog and see it's always on the first/default site. Without changing this to the site you are actually on you add a link to the entry on the wrong site/wrong locale!! (And you have to switch this again on other links you add)

Additional info

  • Craft version: 3.7.43
  • PHP version: 8.0.12
  • Database driver & version: Mariadb
  • Plugins & versions: -
@bencresty bencresty added the bug label Jun 1, 2022
@bencresty
Copy link
Author

bencresty commented Jun 1, 2022

BTW, I saw this issue: #410 but it looks like that's talking about front end so another issue, as I'm only talking about the Control panel itself. But could be related.

Also this one is related: #373

@jripmeester
Copy link

Experiencing the same behaviour here. If any additional info is needed please let me know. Happy to provide!

@olivierbon olivierbon mentioned this issue Jun 23, 2022
brandonkelly added a commit that referenced this issue Jun 29, 2022
@brandonkelly
Copy link
Member

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

@bencresty
Copy link
Author

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

Sweet! Thanks, that's very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants