Skip to content

Add the ability to use a custom fallback search engine#2

Merged
nikosgram merged 2 commits intooglofus:mainfrom
wzykubek:fallback-param
Dec 22, 2025
Merged

Add the ability to use a custom fallback search engine#2
nikosgram merged 2 commits intooglofus:mainfrom
wzykubek:fallback-param

Conversation

@wzykubek
Copy link
Copy Markdown
Contributor

Closed #1

This PR introduces a way to set your own search engine on request. I've updated the web UI to include changes with proper URL encoding and live updating of search-url input.

Examples

  • http://localhost:8787/?q=%s - uses instance's default engine
  • http://localhots:8787/?q=%s&fallback=https://duckduckgo.com/?q= - uses DuckDuckGo search engine

You can pass an encoded string or not; I tested both cases.

This commit introduces a way to specify the fallback search engine
on request with the 'fallback' parameter. This can be used when
multiple users use a single instance and wants to specify their
own search engine.
Moreover, add a event listener function to dynamically update
'search-url' input with encoded string.
@wzykubek wzykubek changed the title Add ability to use custom fallback search engine Add the ability to use a custom fallback search engine Dec 21, 2025
@nikosgram nikosgram self-assigned this Dec 22, 2025
@nikosgram nikosgram merged commit cd59d7b into oglofus:main Dec 22, 2025
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.

Add a way to use custom search engine on demand

2 participants