-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't redirect to remote server #1889
Comments
You can use |
I think that won't work in all cases. Silly example: A user has to enter a URL in the field, and when submitted, we will redirect there. Before submit, we still don't know if there's CORS enabled on that URL. What this PR does is try to fetch it via JS. If it fails, instead of returning an error, it does a full page refresh for the redirect. |
I was trying to see if I can redirect to a controller, and add a hash. So I tried this function:
redirectToUrl "https://github.com/digitallyinduced/ihp?query=1#hash=2"
But this results with an error - likely because we are trying to Ajax it.
The text was updated successfully, but these errors were encountered: