Skip to content

Commit ec839cd

Browse files
committed
Use doc.url in api response
1 parent 28fb13f commit ec839cd

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ 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 + '?highlight=' + $.urlencode(query);
41+
var url = doc.url + '?highlight=' + $.urlencode(query);
4242

43-
var item = $('<a>', {'href': link});
43+
var item = $('<a>', {'href': url});
4444
item.html(doc.title);
4545
list_item.append(item);
4646

0 commit comments

Comments
 (0)