Fixed a bug in the Applications causing endpoints to return HTML redirects;