Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit faa85a9

Browse files
authored
Merge pull request #50 from readthedocs/dont-use-suffix
Don't guess the correct link
2 parents 383b0e3 + a127366 commit faa85a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sphinx_search/static/js/rtd_sphinx_search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ const generateSingleResult = (resultData, projectName) => {
312312
</h2> \
313313
</a>';
314314

315-
let page_link = `${resultData.link}${DOCUMENTATION_OPTIONS.FILE_SUFFIX}`;
315+
let page_link = resultData.link;
316316
let page_title = resultData.title;
317317

318318
// if title is present in highlighted field, use that.

sphinx_search/static/js/rtd_sphinx_search.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)