diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-06 17:06:01 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-06 17:06:01 -0700 |
commit | 536c48096938ef141fdf4351739f8362e80641da (patch) | |
tree | a53b74da69d10db8e6e1a9485c3127c76f4f6207 /theme/javascript/core/search.js | |
parent | d14bd7245f704205e06d25db9a3b614ca3b11930 (diff) | |
download | gitbook-536c48096938ef141fdf4351739f8362e80641da.zip gitbook-536c48096938ef141fdf4351739f8362e80641da.tar.gz gitbook-536c48096938ef141fdf4351739f8362e80641da.tar.bz2 |
Fix loading of search index in sub directories
Diffstat (limited to 'theme/javascript/core/search.js')
-rw-r--r-- | theme/javascript/core/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/javascript/core/search.js b/theme/javascript/core/search.js index 0aca997..a5399d9 100644 --- a/theme/javascript/core/search.js +++ b/theme/javascript/core/search.js @@ -11,7 +11,7 @@ define([ // Load complete index var loadIndex = function() { - return $.getJSON("search_index.json") + return $.getJSON(state.basePath+"/search_index.json") .then(function(data) { index = lunr.Index.load(data); }); |