craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
215 stars 170 forks source link

[4.x]: Redactor product link #3041

Closed lukas-jansen closed 1 year ago

lukas-jansen commented 1 year ago

What happened?

Description

When you have a multi site shop and you have a product type which doesn't have urls for the primary site (or where your CP lives) they won't show up when you want to link to them inside a Redactor field. As only the current site is checked https://github.com/craftcms/commerce/blob/develop/src/Plugin.php#L397 This should look for the site dropdown inside Redactor itself.

Now you are forced to give them a url on the primary site to be able to link

Craft CMS version

4.3.3

Craft Commerce version

4.2.2

PHP version

8.1

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

lukeholder commented 1 year ago

Thanks, this is fixed for the next release.