mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
Fix auto-redirect
This commit is contained in:
parent
d37450622c
commit
391e09dd33
1 changed files with 2 additions and 1 deletions
|
|
@ -251,7 +251,8 @@ angular.module('habitrpg')
|
|||
$window.location.href='/';
|
||||
});
|
||||
} else {
|
||||
if ($window.location.pathname.indexOf('/static') !== 0){
|
||||
var isStaticOrSocial = $window.location.pathname.match(/^\/(static|social)/);
|
||||
if (!isStaticOrSocial){
|
||||
localStorage.clear();
|
||||
$window.location.href = '/logout';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue