This is partially a display problem, and partly an interaction problem. The detection of what is a host is not very good right now. Should we only do this when there is actually an "http" at the beginning?


This second one of course won't actually follow what the user wants. It also feels odd how the display changes here.
https://wpcalypso.wordpress.com/following/manage?q=watirmelon.bl
Similar problems occur when trying to search for things like "testingthemind.wordpress.com" or worse "testingthemind.word"
The detection of what is a host is not very good right now.
Great point. What can we do to make this better?
Should we only do this when there is actually an "http" at the beginning?
That would solve the problem, but I'd hate to go there because if you asked most people for a URL, they'd likely say "whatever.com" - not "http://whatever.com".
It also feels odd how the display changes here.
Can you define "odd" here? FWIW, the display changing from search results to the single URL result is happening as designed. Maybe it feels off because we're not used to it yet.
Keep in mind that, in the first example, if the user was trying to follow "watirmelon.blog", they'd likely stop typing at "watirm" when they saw that the site they wanted is the first result and just click the follow link. So there'd be no need to type the full URL. This is good!
All that said, yeah, our URL detection could benefit from some finesse.
This also breaks "nytimes.com" or "nytimes.co. Trying to follow either of those fails even though the UI makes it feel like nytimes.co is something that I could follow

This is where I get stuck after I try to follow it.
Can you define "odd" here? FWIW, the display changing from search results to the single URL result is happening as designed. Maybe it feels off because we're not used to it yet.
It makes it feel like this is going to succeed, when in fact, the url is incorrect, so it is actually going to fail. And worse, it will take a while to fail because the server will try to go out and fetch things. I'd like it better if it indicated something like: "we don't have anyone following that yet, but we can go try to fetch it for you". Or if we do have people following it, then make it clear that it will just work.
Another good example for testing: "en.blog"
@gibrown Right. So, how do we account for the fact that "nytimes.co" could be a valid URL to follow?
Some of the limitations in the design process were:
So, the flow we've got now is a result of those limitations. If we can change one or more of them, then we can change the UX.
In any case, I think "make URL detection as smart as we can" is a goal we can all get behind.
could we add a special first result to the search results that is a "follow exactly that thing which we think is a URL"?
So, how do we account for the fact that "nytimes.co" could be a valid URL to follow?
I think we should try the following:
Hooray for big zoom call just now!
Basically, lots of fiddly bits to work on here, but we're heading in the right direction. None of this should block the call for testing. But we're gonna do two things:
Try a branch that requires "http" to show the URL state (instead of X.XX). That way we can at least test search results when you put in a domain (whatever.com without the "http") and see how they are. ( @blowery & @samouri )
Design project to figure out if it's possible to show both direct-URL follow and search results at the same time without it being too confusing. (On my list)
Ever forward!
Try a branch that requires "http" to show the URL state (instead of X.XX). That way we can at least test search results when you put in a domain (whatever.com without the "http") and see how they are. ( @blowery & @samouri )
Design project to figure out if it's possible to show both direct-URL follow and search results at the same time without it being too confusing. (On my list)
Posted here: https://github.com/Automattic/wp-calypso/issues/13969
Nice work, all. I'm gonna close this issue since we've spawned other now.
Most helpful comment
Hooray for big zoom call just now!
Basically, lots of fiddly bits to work on here, but we're heading in the right direction. None of this should block the call for testing. But we're gonna do two things:
Try a branch that requires "http" to show the URL state (instead of X.XX). That way we can at least test search results when you put in a domain (whatever.com without the "http") and see how they are. ( @blowery & @samouri )
Design project to figure out if it's possible to show both direct-URL follow and search results at the same time without it being too confusing. (On my list)
Ever forward!