Added basename & location origin to logout button (#2370)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user