angular – iOS Ionic Capacitor anchor links with relative path get wrong subdomains


Capacitor is appending capacitor:// as the protocol for external links. This is only an issue in iOS and not in Android.

We are not deeplinking in this scenario, we need deeplinking behavior to stay the same, it is external link outs that are failing us.

<a href="/foo" target="_blank"> Routes to: capacitor://our-domain.com/foo
Then iOS throws

Failed to open URL capacitor://our-domain.com/foo: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=268, _LSFunction=-[_LSDOpenClient openURL:fileHandle:options:completionHandler:]} 

Where can I override this behavior to append the correct protocol https:// or what configuration needs updating?

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img