[Bug] Address bar interprets simple math calculations as URLs
Using Vivaldi 1.4.589.38 (stable),win7 x64.
Open a new tab,in the address bar typing the following and pressing enter (the default result,which should activate,is "Search Google") redirects you to the following pages:
19046300/1032.75 -> Browser redirects to http://220.127.116.11/1032.75
3/5.3 -> Working as intended
3.5/3 -> http://18.104.22.168/3
2.4 + 3 -> http://2.4/+3/
2.5*2= -> http://2.5/*2%3D/
3/2.5/4.1/8.667 -> http://0.0.0.3/2.5/4.1/8.667
3+5/2*6.712 -> http://3/+5/2*6.712
Manually clicking on the "Search Google" entry in the address bar's dropdown suggestions correctly sends me to google.
I do not have the search field enabled.
I only have one search engine,using https://www.google.com/?gws_rd=ssl,cr#q=%s as the search url.
Possibly related: How can I enable sending my search query to google and retrieving the result,so that if I type 3+5= in the address bar a result with "=8" appears in the dropdown menu?
use search engine prefix g
How can I enable sending my search query to google and retrieving the result,so that if I type 3+5= in the address bar a result with "=8" appears in the dropdown menu?
- Go to vivaldi://settings/search/
- Edit the Google Search Engine.
- In the URL field you should have something like this:
- Below the URL field is the Suggest URL field. Use this URL there:
- Make sure that you've checked the "Enable Search Suggestions in: Address Field" checkbox.
Now typing calculations in the address field should give you the expected results. You need to add the equals sign
=at the end of your query when dividing and subtracting, in order to get the result of your calculation from Google.
Thanks,this works perfectly. Many thanks!
Thanks for the suggestion Google is my only search engine,and as I'm not utilising any prefixes in my everyday usage,so using them only for math expressions would be unintuitive. While the problem has been mostly solved me for the time being,I still think this deserves looking into by one of the devs.
I instead think it's a trivial matter and will go on the bottom of the todo list.