Skip to content

Fix omnibox search navigation#139

Open
adalseno wants to merge 2 commits intolinkwarden:mainfrom
adalseno:fix-omnibox-search-url
Open

Fix omnibox search navigation#139
adalseno wants to merge 2 commits intolinkwarden:mainfrom
adalseno:fix-omnibox-search-url

Conversation

@adalseno
Copy link
Copy Markdown

When entering a search term in the omnibox (lk shortcut), the extension was navigating to the literal string 'lk' instead of constructing a proper search URL to the Linkwarden instance.

Changes:

  • Fix omnibox to navigate to /search?q= instead of 'lk'
  • Fix manifest.json: remove 'scripts' field invalid in Manifest V3
  • Use config.baseUrl consistently in context menu handler
  • Use config.defaultCollection instead of hardcoded 'Unorganized'

Test plan

  • Build extension with npm run build
  • Load unpacked extension in Chrome
  • Configure with Linkwarden server URL and API key
  • Type lk searchterm in address bar and press Enter
  • Verify it navigates to https://your-server/search?q=searchterm

Note: the search URL does not take into account the language settings. Tested on Chrome 144.0.7559.96 on Linux, self-hosted Linkwarden 2.13
🤖 Generated with Claude Code

Fixes linkwarden/linkwarden#978

adalseno and others added 2 commits January 23, 2026 15:12
When entering a search term in the omnibox (lk shortcut), the extension
was navigating to the literal string 'lk' instead of constructing a
proper search URL to the Linkwarden instance.

Changes:
- Fix omnibox to navigate to /search?q=<query> instead of 'lk'
- Fix manifest.json: remove 'scripts' field invalid in Manifest V3
- Use config.baseUrl consistently in context menu handler
- Use config.defaultCollection instead of hardcoded 'Unorganized'

Fixes linkwarden/linkwarden#978

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Chrome MV3 shows a warning but works with both fields.
Firefox MV3 requires scripts as service_worker is not yet supported.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

browser extension lk shortcut not working

1 participant