You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
whoogle-search/test
Ben Busby ef98d85dc5
Ensure searches with a leading slash are treated as queries
A user reported a bug where searches with a leading slash (in this case:
"/e/OS apps" were interpreted as a Google specific link when clicking
the next page of results.

This was due to the behavior that Google's search results exhibit, where
internal links for pages like support.google.com are delivered with
params like "?q=/support" rather than a direct link. This fixes that
scenario by checking the "q" param value against the user's original
query to ensure they don't match before assuming that the result is
intended as a redirect.

Fixes #776
2 years ago
..
__init__.py Added testing and ci build, refactored filter class, refactored project structure 4 years ago
conftest.py Use farside.link for frontend alternatives in results (#560) 2 years ago
test_autocomplete.py Improve public instance session management (#480) 3 years ago
test_misc.py Improve public instance session management (#480) 3 years ago
test_results.py Ensure searches with a leading slash are treated as queries 2 years ago
test_routes.py Update test for bang searches without a query 2 years ago