You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to http://devdocs.io/help#search, that should do a search in the C++ doc for std::min. Instead, it searches the C++ doc for std::min, with two leading spaces, and shows poor quality search results. Manually removing those leading spaces in the search box causes good search results to come up again.
I've used this feature for keyword searches from my browsers' URL bar for a long time, except as https://devdocs.io/#q=cpp%20%s (cpp rather than c++), but starting very recently, that no longer selects the doc I intended.
Possible fix
Trim leading spaces on C++ search terms from the URL!
Alternatively, it seems like it would be slightly cleaner if single-doc searches could be done with URLs like: https://devdocs.io/cpp/#q=std::min
The text was updated successfully, but these errors were encountered:
Currently https://devdocs.io/#q=c+{Query} is a workaround for me. It seems that each plus sign adds an extra space. I guess that's how query string parsing works
I think this is generally happening across all docs when encoding spaces as %20. Unfortunately, the workaround @noirgif proposed is not working for me.
Bug report
OS information
Tested using:
Steps to reproduce
Enter URL in browser:
https://devdocs.io/#q=c++%20std::min
According to http://devdocs.io/help#search, that should do a search in the C++ doc for
std::min
. Instead, it searches the C++ doc forstd::min
, with two leading spaces, and shows poor quality search results. Manually removing those leading spaces in the search box causes good search results to come up again.I've used this feature for keyword searches from my browsers' URL bar for a long time, except as
https://devdocs.io/#q=cpp%20%s
(cpp
rather thanc++
), but starting very recently, that no longer selects the doc I intended.Possible fix
Trim leading spaces on C++ search terms from the URL!
Alternatively, it seems like it would be slightly cleaner if single-doc searches could be done with URLs like:
https://devdocs.io/cpp/#q=std::min
The text was updated successfully, but these errors were encountered: