diff --git a/app/client.imba b/app/client.imba index 4e9827b..b6ec605 100644 --- a/app/client.imba +++ b/app/client.imba @@ -70,7 +70,8 @@ tag app def use_search_engine state.config.search_engine_frequency += 1 save_config! - window.location.href = "//{state.config.search_engine_url}{state.query}" + let encoded_query = window.encodeURIComponent(state.query) + window.location.href = "//{state.config.search_engine_url}{encoded_query}" def handle_return if state.scored_links.length < 1 diff --git a/package.json b/package.json index 279a044..4b16185 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fuzzyhome", - "version": "0.0.25", + "version": "0.0.26", "scripts": { "start": "imba run -SMH --baseurl . -w server.imba", "build-app": "imba build -SMH --baseurl . server.imba", diff --git a/sw.imba b/sw.imba index d7c080e..ddf87bb 100644 --- a/sw.imba +++ b/sw.imba @@ -1,7 +1,7 @@ let p = console.log const app_prefix = "fuzzyhome_cache" -const version = "0.0.25" +const version = "0.0.26" const cache_name = "{app_prefix}-{version}"