Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix google hijacking #69

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Fix google hijacking #69

merged 2 commits into from
Feb 16, 2024

Conversation

workwithnano
Copy link
Contributor

No description provided.

Google tracks outgoing external links through urls like https://www.google.com/url?q=https://nytimes.com

By checking that the url path starts with `/search` if we detect a google url, we can prevent other paths from being hijacked by the extension.

Tested the following urls:
https://www.google.com/url?q=https://nytimes.com/ => does not redirect
https://www.google.com/search?q=https://nytimes.com/ => does redirect

Verified that using Bing and DuckDuckGo continues to work as before.

Fixes: https://kagifeedback.org/d/3120-safari-extension-is-starting-to-hijack-all-google-links-again
@workwithnano workwithnano merged commit 29d3c2a into main Feb 16, 2024
1 check passed
@workwithnano workwithnano deleted the fix-google-hijacking branch February 16, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant