Skip to content

Adding responseURL field to jqXHR #4339

@jbtronics

Description

@jbtronics

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions