mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Fix auto-redirect
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user