Skip to content

feat(pages): support Capacitor iOS navigation - #485

Merged
cpojer merged 2 commits into
voidzero-dev:mainfrom
rdlabo:fix/capacitor-navigation
Oct 19, 2026
Merged

cpojer merged 2 commits into
voidzero-dev:mainfrom
rdlabo:fix/capacitor-navigation

Conversation

@rdlabo

@rdlabo rdlabo commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #480

I'd love to ship apps built with Void as iOS and Android apps using Capacitor. Supporting capacitor:// navigation would open that door! I've been testing a Void app with Capacitor on both platforms, and this is the remaining router limitation in that integration.

This adds capacitor: support to Pages navigation. Capacitor uses that scheme by default on iOS, where the router currently rejects form submissions. The change also compares protocol and host for local navigation and action redirects, since URL.origin returns "null" for Capacitor URLs. It requires no new configuration or dependency.

All 44 Pages client tests pass, including coverage for relative and absolute GET/POST visits, action redirects, different hosts, and rejected schemes. Seven of the new cases fail without this change. Formatting and lint pass for the changed files.

I also bundled the modified client source into a Void 1.1.11 / @void/react 1.1.11 app and tested it in Chromium, WebKit, an iOS 26.1 simulator, and an Android API 36.1 emulator. Rendering, hydration, form submission, D1 persistence, and the subsequent client-only page passed.

The full repository suite and workspace typecheck could not run locally because workspace dependencies and build outputs were missing. The focused tests used Vite+ 1.2.0 with @void/edge resolved to its workspace source.

@rdlabo rdlabo changed the title fix(pages): allow capacitor:// navigation on iOS feat(pages): support Capacitor iOS navigation Oct 18, 2026

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This makes sense, thank you!

@cpojer
cpojer merged commit 9cb89a7 into voidzero-dev:main Oct 19, 2026
2 checks passed
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.

Feature request: support Capacitor navigation for mobile apps

2 participants