-
Notifications
You must be signed in to change notification settings - Fork 49
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
Replacing URLs within srcset attributes produces duplicate "https" prefix #223
Comments
@patrickposner this seems to be happening only when using an image background on the "Group" block. "Cover", "Media & Text" and "Image" blocks, I get no issues. |
@pedddro I couldn't reproduce it. Do you know maybe if the original image has the site URL or something like that in it's name? So it gets replaced twice as the regex finds it there already? Or is the page itself a paginated one? Could you copy the HTML of that page here so I can run tests through that HTML? |
@igorbenic steps to reproduce is just add a background image to any "Group" block. Other blocks, simply static seem to render correctly. Here's a repro: https://poetic-beignet-545238.netlify.app/reproduce-simply-static-error/ |
@pedddro Couldn't reproduce it with the group block. Mine got replaced correctly: Would need if possible: original HTML that you can get from the editor by using the "Code Editor" instead of Visual Editor: And also the general settings regarding URLs: I can then try running that locally and see if I can reproduce the same error and find out what could be causing it. |
I managed to fix it manually by deleting the extra https:// + (the page's URL) that is added to the background image URL css |
Detailed description here: https://wordpress.org/support/topic/current-page-url-https-is-added-to-background-image-url-breaking-it/
The text was updated successfully, but these errors were encountered: