Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

http 303 redirect ends up as NSError "A network error occurred." #163

Open
tony42 opened this issue Nov 15, 2019 · 0 comments
Open

http 303 redirect ends up as NSError "A network error occurred." #163

tony42 opened this issue Nov 15, 2019 · 0 comments

Comments

@tony42
Copy link

tony42 commented Nov 15, 2019

One of our pages uses 303 redirect to an external site. That seems to work fine on Android. On iOS, we end up with an exception.

I did a bit of digging. I'm pretty sure the code ends up in WebView.swift in the WKScriptMessageHandler. The message.name is "VisitRequestFailed" and code is "0".

Ideal situation would be to preform the redirect, recognize the site is "external" and call Turbolinks.SessionDelegate.session(..., openExternalURL: )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant