From 58d8a30b5b33b4bb5037b3389963725d06b00e5c Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 30 Jan 2017 15:26:32 +0100 Subject: [PATCH] Redirect to the main page when logging out --- customize.dist/fsStore.js | 3 ++- www/common/toolbar.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/customize.dist/fsStore.js b/customize.dist/fsStore.js index dcf36927b..2b474a378 100644 --- a/customize.dist/fsStore.js +++ b/customize.dist/fsStore.js @@ -175,7 +175,8 @@ define([ if (!o && n) { window.location.reload(); } else if (o && !n) { - window.location.reload(); + //window.location.reload(); + window.location.href = '/'; } }); diff --git a/www/common/toolbar.js b/www/common/toolbar.js index a118dcf62..810646e24 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -439,7 +439,7 @@ define([ $userAdmin.find('a.logout').click(function (e) { Cryptpad.logout(); - window.location.reload(); + window.location.href = '/'; }); $userAdmin.find('a.login').click(function (e) { window.open('/user');