EddieCameron / keyword-searches-in-safari

Keyword search for Safari (again)
22 stars 2 forks source link

% is converted to %25 in URL causing search to fail #9

Closed lydiaeaves closed 3 years ago

lydiaeaves commented 3 years ago

Hi,

Added in the following search which works when tried directly through the browser: https://cse.google.com/cse?cx=006680642033474972217%3A6zo0hx_wle8&q={search}

However, when I search using the extension the % sign gets encoded to %25 causing the search to fail.

URL is translated to: https://cse.google.com/cse?cx=006680642033474972217%253A6zo0hx_wle8&q={search}

EddieCameron commented 3 years ago

Hi, thanks for this report, I was URL encoding the whole query instead of just the search term. A fix is in the latest release (1.7) https://github.com/EddieCameron/keyword-searches-in-safari/releases/tag/v1.7