We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b855a commit b084e42Copy full SHA for b084e42
1 file changed
src/wwwroot/app.js
@@ -254,7 +254,12 @@
254
});
255
256
var _authReadyResolved = false;
257
- auth.ready.finally(function () { _authReadyResolved = true; });
+ auth.ready.finally(function () {
258
+ _authReadyResolved = true;
259
+ if ($location.path() === '/login' && auth.isAuthed() && !auth.isTemporarilyAuthed()) {
260
+ $location.path(auth.getDefaultUrl() || '/reports');
261
+ }
262
+ });
263
264
$rootScope.$on('$locationChangeStart', function (event, next, current) {
265
var nextRelativeUrl = (next && next.split('#')[1]) || '/';
@@ -270,6 +275,7 @@
270
275
}
271
276
272
277
var unauthenticatedAllowed = [
278
+ '/login',
273
279
'/signup/registration',
274
280
'/signup/otp-validation',
281
'/signup/confirmation',
0 commit comments