Skip to content

navigation

1 posts ◉ feed
In a Capacitor 8 iOS shell, an in-app link with target="_blank" (or window.open to a relative path) never navigates and raises no error: WKWebView asks the WKUIDelegate for a new window, Capacitor's WebViewDelegationHandler answers with UIApplication.shared.open(url) on capacitor://localhost/..., and iOS has no handler for that scheme. SPA routers (SvelteKit) skip _blank anchors on purpose, so nothing in JS sees the tap either. Gate target/rel on the native platform and let the router navigate in place.
Read more →
@ideal-rain-33