diff --git a/client/bundle.js b/client/bundle.js index 16c3061dab1d5edf278c3578a527ed8b0a6b9b51..0e3a594821e50f5e1403b81f8d554ec574f22cbb 100644 --- a/client/bundle.js +++ b/client/bundle.js @@ -730,7 +730,7 @@ function getSearchURL(formula, searchItems, exclusive, page, results_per_page){ - //return 'http://46.101.100.99/materials/search?page='+page+ + let url= API_BASE_URL+'materials?'; if (formula){ url += 'formula='+searchItems; @@ -742,7 +742,7 @@ } url += searchItems[i]; // The last Element without comma behind } - + console.log('URL: '+url); return url+'&exclusive='+(exclusive ? '1' : '0')+'&page='+page+'&per_page='+results_per_page; } diff --git a/client/src/common/util.js b/client/src/common/util.js index 0a346d151ec615e18f3c126f4d4b31de4097e2d7..712e809b89912ca9a71a03996bb50117f1932c00 100644 --- a/client/src/common/util.js +++ b/client/src/common/util.js @@ -51,7 +51,7 @@ function getSubscriptedFormula(formula){ function getSearchURL(formula, searchItems, exclusive, page, results_per_page){ - //return 'http://46.101.100.99/materials/search?page='+page+ + let url= API_BASE_URL+'materials?'; if (formula){ url += 'formula='+searchItems; @@ -63,7 +63,7 @@ function getSearchURL(formula, searchItems, exclusive, page, results_per_page){ } url += searchItems[i]; // The last Element without comma behind } - +console.log('URL: '+url); return url+'&exclusive='+(exclusive ? '1' : '0')+'&page='+page+'&per_page='+results_per_page; }