You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add https:// to beginning of button links if not already present #46385
When adding a link to the Buttons Block, it expects http:// or https:// at the start of a URL.
Say we are adding a Button to myfirstdomain.com, if the link is added as myseconddomain.com (or www.myseconddomain.com) then it will be displayed on the frontend as myfirstdomain.com/myseconddomain.com (or myfirstdomain.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
Create a Page
Add a Buttons Block
Type a link without http:// or https://
Publish the Page
Click the button on the published Page
Environment info
WordPress Version 6.1.1
Gutenberg Version 14.7.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
changed the title [-]Add https:// to beginning of button links if not present[/-][+]Add https:// to beginning of button links if not already present[/+]on Dec 8, 2022
Activity
[-]Add https:// to beginning of button links if not present[/-][+]Add https:// to beginning of button links if not already present[/+]