-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button Block does not prefix a URL with http://
#6841
Comments
This is a bug. We should make sure the first search result isn't automatically selected. |
Tested and confirmed this is still a bug. |
Maybe I'm missing something. I've just tested it:
However, there's no validation or feedback at all: search suggestions stay open, nothing informs me a link has been added, the resulting |
@afercia, thanks for catching that. I'm seeing the same. The link is saved but with no validation or indication it occurred. It would be good to get design feedback on how we should:
I'm leaving this open since this speaks to URL editing for the Button block. Hopefully answers here or in #1838 can be useful for both. |
Let's consolidate on #1838 for the validation so it can be bumped in priority. |
Re-opening because #1838 was fixed by #11286 but did not address the case where hitting enter after typing something into the button block URL field does not work to apply the link. There is a request to add an "Open in new window" option to the link inserter in the button block at #8000 and #10128 seeks to update it to use |
This is still a problem and it's a bit surprising it's still in this state. As mentioned above, reusing Additionally, for accessibility:
There's the need of an additional focus indicator. |
Removing the label as agree this needs doing and doesn't need design specifically. |
I noticed a separate issue in Firefox when testing this again #21777. I've also relabeled and retitiled the issue to reflect the remaining problem to solve. |
http://
How do I change this UrlPicker to add a default value for the link? I mean, I need to pre-populate this link. Thanks! |
I'm still able to reproduce this in Gutenberg 9.4.1 on a vanilla, test site (both in chrome and firefox) using the same steps that @maddisondesigns wrote; but after pressing enter, the path of your website is now included.
if your site is installed at https://nameofyourwebsite.com ; after following those steps, the link becomes |
Can confirm this happens with WordPress 5.6 and Gutenberg 9.5.2/Gutenberg 9.6 RC as well. |
I can also confirm that this happens with WP 5.6. and Gutenberg 9.8. @noisysocks Robert. This seems like a good candidate for the Must Have project board for WP 5.7. |
This same issue also impacts the Image block.
Link href is |
@felixarntz Felix is this an issue you might be able to work on? |
The link control component automatically adds http:// |
The button block already uses the LinkControl component. The pattern seems to be: |
WordPress 5.7 RC 1 Retesting Google-link-buttons-block.mp4Conclusion is that one needs to click the URL link to add the http:// prefix for a button. In relation to the Image block. That does not show an URL option like it does in the Buttons block. @shaunandrews Shaun is experimenting with Link Control designs in this PR: #28755 |
I was able to reproduce this on Gutenberg Version 13.7.3 on the Twenty Twenty-Two theme. As shown in the short video below, I had two button blocks. On the first button, I typed in wordpress.org and I picked the link that was suggested. When I previewed the page this button linked to the wordpress.org site.
Screen.Recording.2022-07-29.at.10.54.34.mov |
Hi, When you enter a url for a button, you can't hit the Return key to apply your changes. On top of that, if you type a url without the https:// it displays a random result from your site and when you hit Return, it actually selects that result instead of using the url you typed The button block does not append http to a url Please reopen if you are still experiencing one of these issues in Gutenberg 15.2 (which is not yet released to the public). |
Describe the bug
I had a feeling that this issue issue may have been raised before but I can't find it.
When you enter a url for a button, you can't hit the
Return
key to apply your changes.On top of that, if you type a url without the
https://
it displays a random result from your site and when you hitReturn
, it actually selects that result instead of using the url you typedTo Reproduce
Steps to reproduce the behavior:
google.com
into the URL fieldreturn
key to apply changesExpected behavior
I should be able to simply enter a URL and hit Enter/Return to apply the changes
Screenshots
macOS Sierra 10.12.1 (16B2659)
Firefox Quantum 60.0 (64-bit)
WordPress 4.9.6
Gutenberg 2.9.0
The text was updated successfully, but these errors were encountered: