[Bug] Address bar interprets simple math calculations as URLs



  • Using Vivaldi 1.4.589.38 (stable),win7 x64.
    Reproduction steps:
    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://1.34.159.156/1032.75
    3/5.3 -> Working as intended
    3.5/3 -> http://3.0.0.5/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
    g 3.5+4



  • @xkomachi said in [Bug] Address bar interprets simple math calculations as URLs:

    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?

    1. Go to vivaldi://settings/search/
    2. Edit the Google Search Engine.
    3. In the URL field you should have something like this: https://www.google.com/search?q=%s
    4. Below the URL field is the Suggest URL field. Use this URL there: https://www.google.com/complete/search?client=opera&q=%s
    5. 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.



  • @pafflick
    Thanks,this works perfectly. Many thanks!
    @iAN-CooG
    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. =)


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.