Skip to content

Conversation

@pfeiffer
Copy link
Contributor

Summary

This PR fixes the navigation policy handler after upgrading to Hotwire Native iOS 1.2

In particular, we now implement the same policies as Hotwire Native and call the RN method correctly, letting that handle the actual opening of external URLs (by cancelling the request).

It also removes the unused delegate method from Turbo Native iOS which doesn't exist in Hotwire Native.

Test plan

Can be tested by tapping an external link or a link that requests a blank window.
Also tested on a page that contains an iframe (which previously would trigger the RN-side method) and confirm that it doesn't.

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