このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
whoogle-mod/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
2022-06-03 14:03:57 -06:00
..
__init__.py Project refactor (#85) 2020-06-02 12:54:47 -06:00
bangs.py Fall back to netloc for bang search if query is empty 2022-04-20 14:50:32 -06:00
misc.py Support proxying results through Whoogle (aka "anonymous view") (#682) 2022-04-13 11:29:07 -06:00
results.py Remove "/" before endpoints & tags (#734) 2022-04-27 14:25:14 -06:00
search.py Ensure searches with a leading slash are treated as queries 2022-06-03 14:03:57 -06:00
session.py Improve public instance session management (#480) 2021-11-17 19:35:30 -07:00