From ac7ea87e5d2357bff0609b43c9e2abc395f6aff0 Mon Sep 17 00:00:00 2001 From: Joshua Carp Date: Thu, 24 Sep 2015 21:58:10 -0400 Subject: [PATCH] Fix base path in typeahead URL. h/t @noahmanger --- static/js/init.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/init.js b/static/js/init.js index a140e7723..5680f3025 100644 --- a/static/js/init.js +++ b/static/js/init.js @@ -1,6 +1,6 @@ 'use strict'; -/* global require, window, document */ +/* global require, window, document, BASE_PATH */ var KEYCODE_SLASH = 191; @@ -82,7 +82,11 @@ $(document).ready(function() { new glossary.Glossary(terms, {body: '#glossary'}); // Initialize typeaheads - new typeahead.Typeahead('.js-search-input', $('.js-search-type').val()); + new typeahead.Typeahead( + '.js-search-input', + $('.js-search-type').val(), + BASE_PATH + ); // Focus search on "/" $(document.body).on('keyup', function(e) {