From f04d49ffb8b266f92684a86fa2d8cc34c072ab5f Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Thu, 13 Apr 2023 22:23:36 +0200
Subject: [PATCH] BUG: fix for webui#212

---
 CHANGELOG.md              | 2 ++
 src/core/js/query_form.js | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ed1a511c..d47d900e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,6 +33,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Fixed
 
+* [#212](https://gitlab.com/caosdb/caosdb-webui/-/issues/212) - Searching for
+  double values in scientific notation fails
 * [#199](https://gitlab.com/caosdb/caosdb-webui/-/issues/199) - Linkify creates
   additional links after showing previews of referenced entities
 
diff --git a/src/core/js/query_form.js b/src/core/js/query_form.js
index 5b3ae1cd..6775fee6 100644
--- a/src/core/js/query_form.js
+++ b/src/core/js/query_form.js
@@ -124,7 +124,7 @@ var queryForm = (function () {
       pagingparam = "P=" + paging + "&";
     }
     location.href =
-      connection.getBasePath() + "Entity/?" + pagingparam + "query=" + query;
+      connection.getBasePath() + "Entity/?" + pagingparam + "query=" + encodeURIComponent(query);
   };
 
   /**
-- 
GitLab