Skip to main content

Bug Tracker

Side navigation

#15142 closed bug (notabug)

Opened June 12, 2014 12:55PM UTC

Closed June 12, 2014 02:53PM UTC

Global .ajaxError() bug with http code 301

Reported by: alexpts Owned by:
Priority: low Milestone: None
Component: ajax Version: 2.1.1
Keywords: Cc: alexpts@yandex.ru
Blocked by: Blocking:
Description

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

Attachments (0)
Change History (1)

Changed June 12, 2014 02:53PM UTC by dmethvin comment:1

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.