Attempt to fix search.json file not found errors

- Add BASE_URL variable to scripts.html _include to create an absolute URL in search.js for search.json
This commit is contained in:
Michael Rose 2015-01-22 11:08:52 -05:00
parent 3c5d70ea00
commit fcde4d999f
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
<script type="text/javascript">
var BASE_URL = '{{ site.url }}';
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="{{ site.url }}/assets/js/scripts.min.js"></script>

View file

@ -96,7 +96,7 @@ function toggleLoadingClass() {
* @return null
*/
function getSearchResults(callbackFunction) {
$.get(jsonFeedUrl, callbackFunction, 'json');
$.get(BASE_URL + jsonFeedUrl, callbackFunction, 'json');
}

File diff suppressed because one or more lines are too long