_layouts/search.html in bfdotcom-theme-0.3.0 vs _layouts/search.html in bfdotcom-theme-0.3.1

- old
+ new

@@ -18,10 +18,10 @@ $(document).ready(function() { var urlParams = getUrlVars() $('#querystring').text(urlParams.q) $('#q').val(urlParams.q) - $.getJSON('https://cloudshot-api.labdemo.net/search?q=' + urlParams.q, null, function(msg) { + $.getJSON(api_gateway_url + '/search?q=' + urlParams.q, null, function(msg) { for (let index = 0; index < msg.length; index++) { const result = msg[index]; $('#results').append('<p class="h4"><a href="' + result.url + '">' + result.title + '</a></p>') $('#results').append('<p>' + result.extract.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;') + '...</p>') }