Skip to content
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

Adding responseURL field to jqXHR #4339

Open
jbtronics opened this issue Mar 29, 2019 · 4 comments · May be fixed by #4405
Open

Adding responseURL field to jqXHR #4339

jbtronics opened this issue Mar 29, 2019 · 4 comments · May be fixed by #4405

Comments

@jbtronics
Copy link

Description

The XMLHttpRequest object has the responseURL property, which is very useful to detect redirect and especially where the request got redirected.

jQXHR objects however does not expose this property and since there are no possibility to get the underlying XMLHttpRequest object (unless you override jQuery.ajaxSettings.xhr function), it is not possible for user functions to get the url to which the request was redirected at all.

This feature were already discussed here and here, but the feature were never implemented.

@mgol
Copy link
Member

mgol commented Mar 29, 2019

Thanks for the report. Our past plans have changed, indeed. I think we'd accept a PR adding this property.

@dmethvin
Copy link
Member

If that old PR can be resurrected it might still work.

@timmywil timmywil added this to the Future milestone Apr 8, 2019
@csmadhav
Copy link

I would like to help

@mgol
Copy link
Member

mgol commented May 1, 2019

@csmadhav PRs welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

5 participants