Skip to content

Commit abf4a75

Browse files
committed
Don't depend on DOCUMENTATION_OPTIONS
1 parent 8cd3e7e commit abf4a75

File tree

1 file changed

+1
-2
lines changed
  • readthedocs/core/static-src/core/js/doc-embed

1 file changed

+1
-2
lines changed

readthedocs/core/static-src/core/js/doc-embed/search.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ function attach_elastic_search_query(data) {
3838
var list_item = $('<li style="display: none;"></li>');
3939

4040
// Creating the result from elements
41-
var link = doc.link + DOCUMENTATION_OPTIONS.FILE_SUFFIX +
42-
'?highlight=' + $.urlencode(query);
41+
var link = doc.link + '?highlight=' + $.urlencode(query);
4342

4443
var item = $('<a>', {'href': link});
4544
item.html(doc.title);

0 commit comments

Comments
 (0)