-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Block] GalleryAffects the Gallery Block - used to display groups of imagesAffects the Gallery Block - used to display groups of images[Block] ImageAffects the Image BlockAffects the Image Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
This is a replica of this report Automattic/wp-calypso#57305
Quick summary
If you add a link to an image in Gutenberg with the www prefix, the link will appear on the live site with the base URL of the WordPress site appended to the link address.
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
Operating System
macOS
Browser
Mozilla Firefox
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.
Step-by-step reproduction instructions
- Create an image block in the editor. Link it as so (www.speedtest.net is used as an example here):
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress 5.8.1
- Gutenberg 11.7.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
shrivastavanolo
Metadata
Metadata
Assignees
Labels
[Block] GalleryAffects the Gallery Block - used to display groups of imagesAffects the Gallery Block - used to display groups of images[Block] ImageAffects the Image BlockAffects the Image Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended