diff --git a/js/search.js b/js/search.js index 3ba369dac..3cd5844fb 100644 --- a/js/search.js +++ b/js/search.js @@ -59,7 +59,7 @@ const display_search_results = function(searchable_catalog) { window.onload = function() { // smart quotes document.getElementById("searchTerm").innerHTML = "“" + search_term + "”"; - fetch("searchable_catalog.json") + fetch("json/searchable_catalog.json") .then(r => r.json()) .then(display_search_results); } diff --git a/js/search_helper.js b/js/search_helper.js index 34c5e3168..9295938f0 100644 --- a/js/search_helper.js +++ b/js/search_helper.js @@ -23,7 +23,7 @@ const search_helper = async function(event,from_course_page = true) { // check if "ABCD-1345" is a real course code const course_exists = await fetch( - from_course_page ? "../courses_list.json" : "courses_list.json" + from_course_page ? "../json/courses_list.json" : "json/courses_list.json" ) .then(list => list.json()) .then(list => list.includes(code_str));