gabrielacaterine / fauxbar

Automatically exported from code.google.com/p/fauxbar
0 stars 0 forks source link

"test" does not use the Fallback URL #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(carried over from issue #83 with laboboLink)

I did this in the beginning because fauxbar have an unexpected behavior.
When typing search query and hitting enter does _not_ the same thing as doing 
the same thing in chrome's omnibox.
That is going to google.com and searching on the query.
I expected "Fallback URL" to do this but it doesn't.
Changing the url to "http://www.google.com/search?q={searchTerms}"
Doesn't work either.

Typing "test" and hit enter and i get to "test.com" instead of the expected 
behavior which is going to google and searching for "test".

Is there a setting i have missed ?
If not, can you add one, please ?

Original issue reported on code.google.com by fauxbar....@gmail.com on 11 Dec 2011 at 6:07

GoogleCodeExporter commented 9 years ago
The default Fallback URL does not act like Chrome's Omnibox's normal Google 
search behaviour, correct.

Changing the Fallback URL is fine, as long as the URL still contains 
{searchTerms}, so http://www.google.com/search?q={searchTerms} should work.

What happens if you click the Yahoo.com or Bing.com buttons to change the 
Fallback URL? Does entering "test" or "foo" or any other non-URL into Fauxbar's 
Address Box use the Fallback URL displayed, or does it keep acting like it's 
using the default of http://www.google.com/search?btnI=&q={searchTerms} ? 

Can you also try for me: Open Fauxbar, press F12, click Console, type in:
localStorage.option_fallbacksearchurl
and press Enter - What URL is returned? Does it match the Fallback URL that's 
in the options?

Original comment by fauxbar....@gmail.com on 11 Dec 2011 at 6:28

GoogleCodeExporter commented 9 years ago
localStorage.option_fallbacksearchurl:
"http://www.google.com/search?q={searchTerms}"

Typing "test" is a bit annoying, fauxbar fills in ".com" so i have to press 
delete to remove it. Results:
google (my): "http://test/"
google (normal): "http://test/"
yahoo: "http://test/"
bing: "http://test/"

Typing "foo" will result in:
google (my): "https://www.google.com/search?q=foo"
google (normal): "http://en.wikipedia.org/wiki/Foobar"
bing: "http://www.bing.com/search?q=foo"
yahoo: "http://search.yahoo.com/search?p=foo"

A bit strange that it used https for the google url. I didn't tell it to use 
https.
google (my): using this url "http://www.google.com/search?q={searchTerms}"

About auto-completion when typing "test" results in "test.com", chrome's 
omnibox behavior is to not do anything "test" will stay "test".

A suggestion for your auto-completion feature (an option):
When it auto-completes to "test.com":
1. if the user press enter it will use "test", not using the suggestion.
2. if the user press tab and then enter it will use "test.com" (as suggested)

Original comment by laboboL...@gmail.com on 11 Dec 2011 at 4:52

GoogleCodeExporter commented 9 years ago
Thanks for trying these out.

I can confirm that your results are the same as mine, even the https bit; I 
guess Google redirects to the https protocol.

I don't know why "test" always goes to "http://test/". It really shouldn't, 
unless you have a local domain named "test". But this happens to me on both 
Windows and Mac OS. Maybe it's a Chrome thing? Other single-words like "foo" 
use the Fallback URL as intended. And disabling the setting "Address Box > 
Intranet > Use Ajax to detect intranet URLs" makes no difference. Very strange. 
Might be a bad example to try, haha.

So it sounds like the Fallback URL feature is working as intended, except for 
when you type in "test".

Fauxbar's auto-completion uses the first domain in its database that matches 
your input, even if you've never directly typed that URL before. This is 
supposed to act as a convenience. I have been annoyed many times with Chrome's 
Omnibox because it doesn't auto-complete a URL I've been to before, even though 
I've never typed it.

Your suggestion is already kind of implemented:
1. Disable the "Address Box > Auto-fill" feature.
2. Type "test" into the Address Box.
3. If you want to use the Fallback URL, just press Enter, or
3a. If you want to go to "http://test.com/" and you've been to it before, press 
Tab or Down Arrow to select it from the list, then press Enter.

This is the same number of keystrokes as your suggestion, assuming test.com is 
the first result in the list.

Does this solve your issue?

Original comment by fauxbar....@gmail.com on 11 Dec 2011 at 5:36

GoogleCodeExporter commented 9 years ago
I should reword - don't use "test" in my steps at the end, as "test" has the 
error of never using the Fallback URL - I'll open a new issue.

Try going to http://foobarbaz.com/ and then do the steps 1-3 with "foobarbaz" 
as a better testing example.

Original comment by fauxbar....@gmail.com on 11 Dec 2011 at 5:42

GoogleCodeExporter commented 9 years ago
On second thought, I'll just rename this issue, as "test" is the problem here. 
Sorry for the influx of emails.

I'll try and look to see why "test" isn't using the Fallback URL, but can't 
really think of why off the top of my head.

But disabling "Address Box > Auto-fill" should give you your desired 
functionality as long as you're not searching for "test" for now ;)

Original comment by fauxbar....@gmail.com on 11 Dec 2011 at 5:49