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

[site] Trying to get Duckduckgo Bangs work with Startpage, but it only works the 2nd time I reload the page #398

Open
chella1cm opened this issue Oct 16, 2024 · 2 comments

Comments

@chella1cm
Copy link

I have setup Startpage as my default search engine and I am trying to get Duckduckgo bangs to work from the navbar.

I use this redirect setting to only redirect when I use an exclamation mark.
Include pattern: ^https?://www.startpage.com/sp/search?query=!(.+)
Redirect to: https://duckduckgo.com/?q=!$1

So when I search it uses Startpage as expected and it should redirect to DDG when I use bangs. but instead it loads the startpage
result with the !bangs when I select the Navbar with the url and press enter, it redirects to the DDG bang like I want.. Is there something
I should do to make bangs work right from the navbar instead of from startpage result page?

@chuangzhu
Copy link

You forgot to escape the ? in search?query, should be ^https?://www.startpage.com/sp/search\?query=!(.+). Also, check whether you selected Regular Expression in Pattern type

@chella1cm
Copy link
Author

Thanks for the reply.

Yes I have entered that Regex pattern like you said and made sure Regular Expression is selected in Pattern type. (Image).

This is how it redirects (Gif). When I enter the bang! right in the Navbar, it leads to the Startpage result with the entered bang!
still in the URL when I press enter in the Navbar again the 2nd time, it redirects to the said bang!.
Is there something I should do to make bangs work right from the navbar without loading startpage result page first?

@Gitoffthelawn Gitoffthelawn changed the title Trying to get Duckduckgo Bangs work with Startpage, but it only works the 2nd time I reload the page [site] Trying to get Duckduckgo Bangs work with Startpage, but it only works the 2nd time I reload the page Oct 25, 2024
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

No branches or pull requests

2 participants