diff --git a/tutorials/themes/tutorials-theme/static/searchtools.js b/tutorials/themes/tutorials-theme/static/searchtools.js index c97ca15d0..8dbec7c32 100644 --- a/tutorials/themes/tutorials-theme/static/searchtools.js +++ b/tutorials/themes/tutorials-theme/static/searchtools.js @@ -13,7 +13,7 @@ // See https://stackoverflow.com/a/25489055/9959073 for details. jQuery.ajaxSetup({async:false}); -/* Non-minified version JS is _stemmer.js if file is provided */ +/* Non-minified version JS is _stemmer.js if file is provided */ /** * Porter Stemmer */ @@ -416,17 +416,17 @@ var Search = { if (query.includes("filterTutorials")) { // don't search docs if we are just looking for tutorials var docResponse = null; var docResult = ''; - $.get('https://readthedocs.org/api/v2/docsearch/?q=' + window.location.search.split('=')[1] + '&project=astropy&version=stable&language=en', function(response){ + $.get('https://docs.readthedocs.io/_/api/v2/search/?q=' + window.location.search.split('=')[1] + '&project=astropy&version=stable', function(response){ docResponse = response; //limits the maximum results from the documentation to 15 docResultsCount = (docResponse.results.hits.total>15)? 15 : docResponse.results.hits.total ; for(var i = 0; i < docResultsCount; i++ ) { - docResult += '