Skip to content

fix(website): hero CTA always goes to the download page#56

Merged
nelsonduarte merged 1 commit into
mainfrom
fix/website-hero-download-to-page
May 10, 2026
Merged

fix(website): hero CTA always goes to the download page#56
nelsonduarte merged 1 commit into
mainfrom
fix/website-hero-download-to-page

Conversation

@nelsonduarte
Copy link
Copy Markdown
Owner

Summary

The hero "Download for free" button on the homepage was being rewritten by a userAgent sniff in `script.js` to point directly at a platform-specific asset on GitHub Releases. This stopped making sense now that PDFApps is multi-platform and on the Microsoft Store — and the macOS branch was also pointing at the obsolete `PDFApps-macOS.zip` (replaced by `.dmg` in v1.13.4).

Fix

Remove the OS-detecting block in `script.js` so the HTML `href="download.html"` takes effect on every platform. Users now land on the download page where the Microsoft Store badge, .exe installer, macOS DMG and Linux packages are all surfaced explicitly.

Test plan

  • Click the hero CTA on Windows → lands on download.html (not a .exe download)
  • Same on macOS / Linux
  • download.html still shows the Microsoft Store badge as primary for Windows

🤖 Generated with Claude Code

The hero "Download for free" button had its href rewritten on load
by a userAgent sniff in script.js, which forced a direct platform
download (Windows .exe / macOS .zip / Linux .tar.gz). This was
misleading because:

- The app is multi-platform; we now also ship on the Microsoft Store
  (the most appropriate Windows install path), not just GitHub Releases.
- The macOS branch still pointed at PDFApps-macOS.zip, which no longer
  exists — we ship a .dmg as of v1.13.4.
- Forcing a download bypasses the dedicated download page where users
  can see all install options (Store, .exe, DMG, Snap, Copr, AUR,
  AppImage, ...).

Removing the override lets the HTML href="download.html" take effect
on every platform, surfacing the curated install options instead of
guessing the user's OS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nelsonduarte nelsonduarte merged commit 0a847d6 into main May 10, 2026
3 checks passed
@nelsonduarte nelsonduarte deleted the fix/website-hero-download-to-page branch May 10, 2026 21:59
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