Internal links in "Translated for each site group" default link location
Description
Not sure if it's a bug or just a flaw in the editing flow.
We have a setup where several sites use the "Translated for each site group" option. By default, when you insert a link to an entry, it uses the site selected from the entries modal (which is default the site you are editing).
Because of that now the link, for example /uk/contact is the same in all sites instead of, for example /au/contact for the Australian one.
I found that you can edit the link to use "Link to current site", but that's multiple clicks and scrolling away (58 sites in the dropdown).
Can we improve this flow? Some possible options:
- Default select "Link to current site" when in the entry modal (probably not possible as it isn't a site)
- Default to the edit mode in combination with "Link to current site" at the top of the dropdown
- Detect if the site you are editing is the same as you selected in the entry modal and then set it to "Link to current site"
Additional info
- Craft version: 5.3.6
- Plugins & versions: CKEditor 4.2.0, ...
I would like to 2nd this request. We have a similar situation where the same content is translated to a number of different sites. It is very noninutitive (and easy to forget) for content editors to insert a link, then go back and edit it, scroll all the way to the bottom of the long list of sites, and select "current site". As a result we often end up with the non-English sites containing links back to the English version of a page.
I have spent some time trying to figure out how to replace Craft's LinkUI CKE plugin, or somehow modify the default behavior, but it doesn't seem to be possible without forking this repo completely and maintaining my own copy.
A configuration option to default to always "link to the current site" would be a huge improvement in AX for our situation.
Since there has been any movement on this issue, which I'm having as well, I'm left with no option but to fork it as well.
@brandonkelly could this get some attention please?
Voting for this too please 🙏