boyter / searchcode-server

The offical home of searchcode-server where you can run searchcode locally. Note that master is generally unstable in the sense that it is not a release. Check releases for release versions https://github.com/boyter/searchcode-server/releases

Home Page:https://searchcodeserver.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter in /html does not work properly

quasarea opened this issue · comments

Same query, same filter yields different results:
15 hits - http://localhost:8080/?q=%22Microsoft.Office.Interop.Excel%22&lan=MSBuild%20scripts
0 hits - http://localhost:8080/html?q=%22Microsoft.Office.Interop.Excel%22&lan=MSBuild%20scripts

I noticed that in even result address gets different, maybe related to space in language name:
http://localhost:8080/?q=%22Microsoft.Office.Interop.Excel%22&lan=MSBuild%20scripts
http://localhost:8080/html/?q=%22Microsoft.Office.Interop.Excel%22&lan=MSBuild+scripts

As you guessed it is because of the space. I changed the way that was handled to fix a bug on the JS side and looks like it was not reflected on the HTML.

TODO - Improve integration tests to cater for this to avoid it reoccurring and then fix the bug.