-
Notifications
You must be signed in to change notification settings - Fork 647
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
[4.x]: Adding new site to a multi site setup gets links and assets messed up. #16936
Comments
Hi, thanks for getting in touch!
Can you please share the details of that setup or send your |
Will do. And I assume you mean [email protected] ;) |
Oops, yes! |
Thanks again for the files! In terms of Assets, this sounds like a duplicate of #12767. I raised a new PR for that original issue, so when you enable, e.g. an entry for a new site, the asset won’t get relocated if “Manage relations on a per-site basis” is off. That said, if you create an entry for
Let’s say I added a new site to your installation (handle: |
Thanks for the feedback. As for links, some of my cloning didn't get links from /siteA/entry to /siteB/entry. So I have to manually update the navigation all over again. |
Another side note. |
They won’t going forward, thanks to #16938 (assuming your Assets field’s “Manage relations on a per-site basis” setting is disabled).
Not really following you here. What is your volume’s Base URL set to?
And these are for actual entry selections, right? Are the linked entries in the same section as the Link field, or in a section which was enabled for the new site before the initial queue job was done processing? |
Craft 4.14.12 and 5.6.14 are out with that fix from #16938. |
What happened?
Description
I have a multi site installation with 6-7 web sites.
I have a rule in my folders that assets that each website can only select assets from their own folders, and that is setup using the site handle. It works fine and the assets upload and selection are properly set to each folder based on the website the user is editing.
When I need to enabled a new site things get all messed up. Since in theory the new site can't access the images from the original site some of them seem to be moved (not cloned) into a folder with the new website handle.
That means that the assets are moved and the original website misses a lot of its images/assets.
Another isse is with links. Some links get broken when duplicating the website and they still get related to the entries int he original website instead of the cloned website (like some links in navigation).
So there is a lot of manual work to fix this every time I need to enable a new website.
Steps to reproduce
Expected behavior
I would expect that all links that were created by selecting an entry in the original website, would get changed to the entry in the duplicated site. Either assets would be cloned into the new folder and connections updated (dream scenario) or they would still only in the original folder and wouldn't break the original website. Although th
Actual behavior
As described previously, assets get moved and then losing reference in the original website.
Links are not updated and are linked to the original website.
Craft CMS version
4.14.11
PHP version
8.3.4
Operating system and version
Linux 5.15.0-125-generic
Database type and version
MySQL 8.0.41
Image driver and version
GD 8.3.4
Installed plugins and versions
Plugins
CKEditor 3.11.1
Colour Swatches 4.5.3
Control Panel Nav 4.0.12
Cookie Manager 1.0.11
Cookies 4.0.1
DigitalOcean Spaces Filesystem 2.0.0
Feed Me 5.11.0
Field Manager 3.0.9
Image Resizer 3.0.13
Neo 4.4.1
Redactor 3.1.0
SEOMate 2.3.1
Super Table 3.0.15
The text was updated successfully, but these errors were encountered: