-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Image src not updated when site address is changed in Simple Sites with custom domain #94360
Comments
|
Support References This comment is automatically generated. Please do not edit it.
|
FindingsAfter debugging and investigating the issue, we confirmed the following:
Next StepsFollowing the Atomic API implementation, we could explore rewriting the URLs when changing the primary domain. |
This may be useful: In 8698141-zen the customer mentioned that posts published before 31 July 2024 don't display images. I thought I'd mention this in case this date is significant. |
Thanks @pauljacobson for sharing this 🙇. I presume that the date (31 July 2024) is relevant as the user changed the primary domain around that date. |
In this case it's happening on Atomic. Site editor images have the wpcomstaging address, which caused them to break when the user switched to their normal address: @jartes do you want to update to say it's happening on Atomic too? |
Also is this related to this issue? |
8713408-zd-a8c They have about 19.000 affected posts. They canceled the domain three days ago (2024-09-09), so they're now using *.wordpress.com as a primary. Simple site. |
A proposed fix for simple sites D161259-code |
We also had two separate changes that aim to solve this problem using slightly different approaches:
|
We don't think there is an easy fix. We need decide whether to dynamically fix the wrong URLs, or to fix them in the database. We are now counting how many such events are happening in production, to help assessing how to proceed further:
I think this issue needs shaping, moving this issue to that column. |
This is a related issue which should ideally be solved together (in the same shaping initiative), once and for all: |
Quick summary
When a site primary address is changed from a custom domain to another domain or free WordPress.com address, the image
src
is not updated.In some scenarios, the original domain is detached from the site (domain is transferred or expires), making the images not being displayed.
Steps to reproduce
src
.What you expected to happen
Having the image
src
updatedWhat actually happened
The image
src
is not updated, and as mentioned, is not being displayed if the domain expires, or is not connected to the site anymore.Impact
All
Available workarounds?
Yes, difficult to implement
If the above answer is "Yes...", outline the workaround.
The only workaround for now is editing the image
src
manually in cases where there are a few images.Platform (Simple and/or Atomic)
Simple
Logs or notes
More context: p1724328833178529-slack-C03TY6J1A
The text was updated successfully, but these errors were encountered: