Skip to content

Commit

Permalink
Fix trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jul 26, 2023
1 parent 84132d1 commit 7c6413e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/server_fetch_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export function searchItems(query, nresults = 100, types = null) {

export function searchCollections(query, nresults = 100) {
// construct a url with parameters:
var url = new URL(`${API_URL}/search-collections/`);
var url = new URL(`${API_URL}/search-collections`);
var params = { query: query, nresults: nresults };
Object.keys(params).forEach((key) => url.searchParams.append(key, params[key]));
return fetch_get(url).then(function (response_json) {
Expand Down

0 comments on commit 7c6413e

Please sign in to comment.