Image Block: hyperlinks added to Image blocks without http(s) prefix append to page/page slug #51665
Labels
Blocks
Editor blocks, aka Gutenberg blocks, plugins, and extensions
[Pri] Normal
Schedule for the next available opportuinity.
Triaged
To be used when issues have been triaged.
[Type] Feature Request
Feature requests
Steps to reproduce
Image Link: https://d.pr/i/s2mQwi
What I expected
I expected the image to link to automattic.com and intuitively account for the lack of the https:// prefix
What happened instead
The URL entered appends to the end of the post/page slug:
Image Link: https://d.pr/i/tgNXAE
Clicking on the image results in a 404
Browser / OS version
Browser: Chrome & Safari
OS: macOS 10.15.6
Context / Source
There was a site with multiple 404 errors from viewers (18808537-hc). We determined this was because they added their site URL as hyperlinks to image blocks, they were adding it as www.siteurl.com, which appended the URL to the end of the page/post slug.
There were 480 instances of these hyperlinks, which was resolved using search & replace
It should be noted that this issue occurs on both Simple, Atomic, and self hosted. This issue does NOT occur in the classic editor; it automatically translates www.siteurl.com to https://siteurl.com
The text was updated successfully, but these errors were encountered: