Skip to content

fix: extension Install button opens store listings, not GitHub docs#99

Merged
stylessh merged 1 commit intomainfrom
fix/extension-install-store-urls
Apr 13, 2026
Merged

fix: extension Install button opens store listings, not GitHub docs#99
stylessh merged 1 commit intomainfrom
fix/extension-install-store-urls

Conversation

@stylessh
Copy link
Copy Markdown
Owner

Problem

The extension install chip could send users to the GitHub README (docs) instead of Chrome Web Store / Firefox AMO.

Cause

getExtensionStoreInstallUrl() read store URLs from siteConfig, which could resolve incorrectly in some bundles/deploys.

Fix

  • Define CHROME_EXTENSION_STORE_URL and FIREFOX_EXTENSION_STORE_URL in extension-store-url.ts and use them directly in getExtensionStoreInstallUrl().
  • site-config.ts imports the same constants so values stay single-source.
  • Firefox detection also matches FxiOS/ (Firefox on iOS).

- Define CHROME_EXTENSION_STORE_URL / FIREFOX_EXTENSION_STORE_URL in extension-store-url
- getExtensionStoreInstallUrl reads those constants only (avoids stale README URLs)
- siteConfig re-exports same constants; detect FxiOS for Firefox iOS
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
diffkit a244555 Apr 13 2026, 08:40 PM

@stylessh stylessh merged commit aee025d into main Apr 13, 2026
4 checks passed
"https://chromewebstore.google.com/detail/celjddfjncnnkgfgldobcahfiimlebll/" as const;

export const FIREFOX_EXTENSION_STORE_URL =
"https://addons.mozilla.org/en-US/firefox/addon/diffkit/" as const;
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should change this

stylessh added a commit that referenced this pull request Apr 18, 2026
…#99)

- Define CHROME_EXTENSION_STORE_URL / FIREFOX_EXTENSION_STORE_URL in extension-store-url
- getExtensionStoreInstallUrl reads those constants only (avoids stale README URLs)
- siteConfig re-exports same constants; detect FxiOS for Firefox iOS
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