CRM-14215 - Fix ajax redirects