Commit f2ab9a4f authored by Sven Franck's avatar Sven Franck

app: update parseQuery to handle url passed value

parent b89118c0
......@@ -4404,7 +4404,14 @@
} else {
default_query = query || {};
obj = {"query": ''};
value = window.decodeURIComponent(value);
// reset is_value to weave in URL-value:foo
if (default_query.value) {
value = default_query.value;
is_value = value && value !== "";
} else {
value = window.decodeURIComponent(value);
}
// query string passed? parse it
if (default_query.query) {
......@@ -4440,7 +4447,7 @@
// "foo" = "bar"
if (is_value && key) {
obj.query += ' AND (' + key + ':"' + value + '")';
obj.query += ' AND (' + key + ': "' + value + '")';
obj.start = 0;
obj.items = 1;
obj.restore = [key, value];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment