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/app/utils
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 Project refactor (#85) 4 years ago
bangs.py Fall back to netloc for bang search if query is empty 2 years ago
misc.py Support proxying results through Whoogle (aka "anonymous view") (#682) 2 years ago
results.py Remove "/" before endpoints & tags (#734) 2 years ago
search.py Ensure searches with a leading slash are treated as queries 2 years ago
session.py Improve public instance session management (#480) 3 years ago