Image blocks with www links append the site's base URL to the link. #57305
Labels
Cross Repo Tracker
For issues that are tracking issues in other repositories
[Feature] Post/Page Editor
The editor for editing posts and pages.
[Pri] Low
Address when resources are available.
[Type] Bug
Quick summary
If you add a link to an image in Gutenberg with the www subdomain, the link will appear on the live site with the base URL of the WordPress site appended to the link address.
Steps to reproduce
2. Go into preview or the live site, and hover over the image:
3. Clicking the link will result in a 404 error on the wordpress site, as it tries to go to: https://wordpress-site/www.speedtest.net
What you expected to happen
The link should follow the same behaviour as links added in paragraph blocks: The www. site should be linked correctly.
What actually happened
The link 404's as the base wordpress site URL is appended to the beginning of the link.
Context
A user discovered this behaviour here: 4024683-hc
Operating System
macOS
Browser
Mozilla Firefox
Simple, Atomic or both?
Simple, Atomic
Theme-specific issue?
No response
Other notes
No response
Reproducibility
Consistent
Severity
All
Available workarounds?
Yes, easy to implement
Workaround details
Removing the link from the image block, and then re-adding it as https://www.link.com will work.
Removing the image block and re-adding it may be necessary.
The text was updated successfully, but these errors were encountered: