Added basename & location origin to logout button (#2370)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-10-06 22:48:13 -05:00
committed by GitHub
parent f10fdf4610
commit 2b17aa598f

View File

@@ -57,6 +57,8 @@ const ConsoleMenuList = ({
setSelectedMenuItem(groupToSelect);
}, [groupToSelect]);
let basename = document.baseURI.replace(window.location.origin, "");
return (
<Box
className={`${stateClsName} wrapper`}
@@ -135,7 +137,7 @@ const ConsoleMenuList = ({
<ListItem
button
component="a"
href="/logout"
href={`${window.location.origin}${basename}logout`}
disableRipple
sx={{
...menuItemContainerStyles,