1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

improved manifest.json and API 401 redirect logic

This commit is contained in:
Harvey Kandola 2017-12-21 11:40:20 +00:00
parent cafa410d16
commit 0b0cae4a8d
14 changed files with 705 additions and 708 deletions

View file

@ -38,7 +38,7 @@ export default AjaxService.extend({
let appVersion = headers['x-documize-version'];
// when unauthorized on local API AJAX calls, redirect to app root
if (status === 401 && is.not.undefined(appVersion)) {
if (status === 401 && is.not.undefined(appVersion) && is.not.includes(window.location.href, '/auth')) {
window.location.href = 'auth/login';
}