Replacing URLs within srcset attributes produces duplicate "https" prefix
Detailed description here: https://wordpress.org/support/topic/current-page-url-https-is-added-to-background-image-url-breaking-it/
@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/ Using cloudflare: https://simply-static-error.pages.dev/reproduce-simply-static-error/
@pedddro Couldn't reproduce it with the group block.
Mine got replaced correctly:
Relative:
Absolute:
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.
@igorbenic https://gist.github.com/pedddro/5d721ebf64c4f0b9b34b154a4dcd0931
I managed to fix it manually by deleting the extra https:// + (the page's URL) that is added to the background image URL css
I'm gonna close this for now.