Add https:// to beginning of button links if not already present #46385
Labels
[Block] Buttons
Affects the Buttons Block
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Type] Enhancement
A suggestion for improvement.
Description
When adding a link to the Buttons Block, it expects
http://
orhttps://
at the start of a URL.Say we are adding a Button to
myfirstdomain.com
, if the link is added asmyseconddomain.com
(orwww.myseconddomain.com
) then it will be displayed on the frontend asmyfirstdomain.com/myseconddomain.com
(ormyfirstdomain.com/www.myseconddomain.com
).It works correctly for a regular text link. It will automatically add
http://
to the beginning of a link in a Paragraph Block (sort of related).Step-by-step reproduction instructions
http://
orhttps://
Environment info
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
The text was updated successfully, but these errors were encountered: