Skip to content

Commit

Permalink
Attempt to fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Dec 2, 2019
1 parent aec90ea commit 4f22ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api.service.ts
Expand Up @@ -58,9 +58,9 @@ export class ApiService {

doSearch(params) {
const URL = 'https://next.obudget.org/search';
let url = `${URL}/${params.doctype}/${encodeURIComponent(params.term)}`;
let url = `${URL}/${params.doctype}?q=${encodeURIComponent(params.term)}`;
const filters = JSON.stringify(params.filters).slice(1, -1);
url += '?filter=' + encodeURIComponent(filters);
url += '&filter=' + encodeURIComponent(filters);
return this.http
.get(url)
.pipe(
Expand Down

0 comments on commit 4f22ec0

Please sign in to comment.