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:
parent
cafa410d16
commit
0b0cae4a8d
14 changed files with 705 additions and 708 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue