-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
readthedocs.org "Search all docs" endpoint forwards to incorrect link (.html missing) #5397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This also happens in the internal search https://readthedocs.org/projects/docs/search/?q=docs. I'm investigating. Probably related to some new changes in #5230 The search in the project itself isn't affected. |
The problem is here So, related to the resolver, but I think that was added before :/ |
Ok, so I thought that we were using the path from imported file for search, but happens that we don't do that. There we have the real path with the html extension. But int the further function, we pass the And we use the sphinx data to provide the path (without extension) @ericholscher any reason why we can't use the original path and rely on the path from sphinx? |
Also, saving the original path, would help us to reduce the magic that depends on the doctype. |
I don't fully understand what's going on here, but capturing the real file path is the goal of https://github.com/rtfd/readthedocs-sphinx-ext/pull/62/files#diff-1b00543baae13c24c6592e94f0ea6c1dR210 |
I was going to take a look at the extension too, that should fix this problem :) |
Actually if we take the solution from the extension, old projects still will point to the buggy path (we'll need to rebuild all projects to make that work, which is impossible). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
hi @tweep, a release was made today, it fixes this issue. We are going to re-index the search index, so it should take time in see the correct results in all projects, but you can re-trigger a reindex for your projects just now triggering a new build for each version. |
Details
Hi there,
I got some trouble regarding the Readthedocs search on your website.
How to reproduce
Expected Result
I expect that I get forward to a URL which shows the result and has the suffix ".html" :
https://microscope.readthedocs.io/en/latest/content/transcriptomic/NGSProjectRNAseq.html?highlight=getting%20started
Actual Result
I get forwarded to an Error page saying "SORRY the page does not exist yet" , because the result url is missing the ".html" suffix
Incorrect: https://microscope.readthedocs.io/en/latest/content/transcriptomic/NGSProjectRNAseq?highlight=getting%20started
Correct: NGSProjectRNAseq**.html**?highlight=...
Incorrect forward: NGSProjectRNAseq?highlight=...
The text was updated successfully, but these errors were encountered: