Bug Tracker

Opened 7 years ago

Closed 7 years ago

#15142 closed bug (notabug)

Global .ajaxError() bug with http code 301

Reported by: alexpts Owned by:
Priority: low Milestone: None
Component: ajax Version: 2.1.1
Keywords: Cc: [email protected]
Blocked by: Blocking:

Description

Global event .ajaxError() called when ajax requests complete with http code 301 without error.

Change History (1)

comment:1 Changed 7 years ago by dmethvin

Resolution: notabug
Status: newclosed

The docs explain that a 3xx is considered an error; we don't automatically follow redirects in an attempt to make them successful. From the jQuery.ajax docs:

If the request is successful, the status code functions take the same parameters as the success callback; if it results in an error (including 3xx redirect), they take the same parameters as the error callback.

Note: See TracTickets for help on using tickets.