Brave search overriding default search engine for some previously used query strings

For some previously searched words, brave search will hijack the browser instead of allowing the default search engine to operate.

Specifically, it causes a Brave Search with a query that is itself a brave search url. For instance, typing “hackernews” into the search bar and pressing enter will cause the browser to go to https://search.brave.com/search?q=search.brave.com%2Fsearch%3Fq%3Dhackernews%26source%3Ddesktop&source=desktop

or even https://search.brave.com/search?q=search.brave.com%2Fsearch%3Fq%3Dsearch.brave.com%252Fsearch%253Fq%253Dhackernews%2526source%253Ddesktop%26source%3Ddesktop&source=desktop

but entering the same string (“hackernews”) with a space after it will result in a search using the default search engine (as expected).

Occurs after changing the default search engine to brave, using it to search for things, and then changing it back to what it was before. In this case, duckduckgo.

  1. Use duckduckgo as default search engine in all windows.
  2. Switch to brave search as default search engine for all windows.
  3. Search for things like hackernews or chatgpt.
  4. Revert to duckduckgo as default search engine for all windows.
  5. Attempt search for things which were searched for previously (like hackernews or chatgpt)

Expected result:

a duckduckgo search

Brave Version:

1.65.123

Additional Information:

This behavior has been experienced numerous times over numerous versions over multiple years.

@meriadoc777 just a FYI, it’s not overriding. What you need to do is look more at what’s being shown. If you had done a prior search, it shows it as History. For example, check screenshot below:

Notice how to the right of the term it shows Google Search? So even if my default search engine was Brave Search or something, my clicking on it would go to my History where I had looked on Google. So it’s just having to be mindful of that.

ddg_search_hijack

Nope. This is what’s being shown. A duckduckgo icon. Then Brave Search hijacks it the instant I press enter. And takes me to https://search.brave.com/search?q=search.brave.com%2Fsearch%3Fq%3Dgithub%26source%3Ddesktop&source=desktop

I have ignored this bug for quite a while, assuming it would be fixed, but it has not been, so I am reporting it. And apparently it still persists even after deleting Brave Search from the list of search engines.

I don’t want search suggestions (which is why I have them turned off and always have). Not only does this make it seem like the search suggestions feature is mandatory, there is now no way to decline a suggestion (even though it is invisible). The only choice for the user is to abandon the string of characters that he wanted to search for and search for an alternate version of it which is not poisoned by the browser

Yeah, I’m not speaking about the icon on the left which shows your default search engine. I’m speaking of the suggested text below it. Unfortunately your screenshot omitted that so I can’t see if it was indeed the same way as I was pointing out.

You might want to test this by going to brave://settings/appearance and disabling Show autocomplete suggestions in address bar or disabling the little boxes underneath, such as History. If I’m right, you’ll notice that this behavior stops at that point.

image

1 Like

Just tested this on Windows and macOS and cannot reproduce it.

I’m interested to see if @Saoiray’s suggestion works — during testing, I did find that the top search suggestion was automatically selected so I’m wondering if it’s accidentally being selected.

As I said, I do not have suggestions or autocomplete on and rarely do.

I should not be getting suggestions and no suggestions or autocomplete code should even be running. The settings are broken. The code should not run, period. It’s not about whether it’s working correctly. It’s an unnecessary attack surface if it runs at all when it’s supposed to be off.

I just tried to reproduce the issue on my laptop and am not able to. EDIT: I HAVE REPRODUCED IT. SEE BELOW. But on desktop I notice that when I enable suggestions, the top suggestion is https://search.brave.com/search?q=search.brave.com%2Fsearch%3Fq%3Dgithub%26source%3Ddesktop&source=desktop

When I disable suggestions again, the behavior is the same as before.

The only other thing I notice is that Top Sites is unchecked while everything else is checked (when I have suggestions enabled it shows this).

EDIT: I have just independently reproduced the issue on my laptop install of Brave Browser as well.

To do this I:

  1. Enabled search suggestions in Appearance settings.

  2. Set the default search engine to Brave search.

  3. Searched for a string which I have never searched before. In this case “githuby”.

  4. Went to search it again, this time clicking on the suggestion which was created for “githuby” and Brave search due to the first search in step 3.

  5. Reset default search engine to DuckDuckGo.

  6. Disabled search suggestions in Appearance settings.

  7. Searched for “githuby”.

Expected result:

A duckduckgo search for “githuby”

Actual result:

A Brave Search for the string “https://search.brave.com/search?q=githuby&source=desktop” i.e. I was taken to the url https://search.brave.com/search?q=search.brave.com%2Fsearch%3Fq%3Dgithuby%26source%3Ddesktop&source=desktop

@meriadoc777,
Thank you for the clear steps to reproduce — I’m seeing this behavior as well. Will open an issue for this.

I have just reproduced the issue on Ubuntu as well. It requires Browser History suggestions checkbox to be checked as well.

Thanks.

I’ve opened the following issue for the developers to review:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.