madskristensen/MiniBlog — pull request #107 by fredrikeriksson (2014-06-20 02:24:33+00:00)
Title: AJAX requests now skips customError behavior

Added code i Global.asax to prevent redirects to ~/ or ~/404.cshtml
when the request is considered an AJAX request.
This is to prevent redirections of the requests which results in a
valid page and status code 200 and not the status code from thrown
HttpException which results in that the success/fail functionality
always thinks it's a success, even when it's not.

Fixes #104