From 47a6af52ba9a07d0a429404158b06becbc1a6041 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 25 Feb 2022 11:33:08 +0100 Subject: [PATCH] Resolve #242 --- dev/Common/Links.js | 2 +- dev/View/User/SystemDropDown.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/Common/Links.js b/dev/Common/Links.js index fd861eb05..1c4f8ef8f 100644 --- a/dev/Common/Links.js +++ b/dev/Common/Links.js @@ -19,7 +19,7 @@ export const * @param {string=} startupUrl * @returns {string} */ - root = (startupUrl = '') => HASH_PREFIX + pString(startupUrl), + root = () => HASH_PREFIX, /** * @returns {string} diff --git a/dev/View/User/SystemDropDown.js b/dev/View/User/SystemDropDown.js index c15aae9df..36c948d1b 100644 --- a/dev/View/User/SystemDropDown.js +++ b/dev/View/User/SystemDropDown.js @@ -4,7 +4,7 @@ import { MessageUserStore } from 'Stores/User/Message'; //import { FolderUserStore } from 'Stores/User/Folder'; import { Capa, Scope } from 'Common/Enums'; -import { /*root,*/ settings } from 'Common/Links'; +import { root, settings } from 'Common/Links'; import { showScreenPopup } from 'Knoin/Knoin'; import { AbstractViewRight } from 'Knoin/AbstractViews'; @@ -83,6 +83,7 @@ export class SystemDropDownUserView extends AbstractViewRight { AccountUserStore.loading(false); */ // rl.route.reload(); + location.href = root(); location.reload(); } }, {Email:account.email}