diff --git a/src/api.js b/src/api.js index f6a5329..236eb78 100644 --- a/src/api.js +++ b/src/api.js @@ -202,7 +202,7 @@ const getEmoji = () => { * @returns {object} List of movies and shows matching query */ const elasticSearchMoviesAndShows = (query) => { - const url = path.join(ELASTIC_URL, ELASTIC_INDEX, '/_search') + const url = new URL(path.join(ELASTIC_INDEX, '/_search'), ELASTIC_URL) const body = { "sort" : [