Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 2e1fdcf

Browse files
authored
Merge pull request #79 from gbevan/D20181230_fix_logout_token_exp
fix logout option behind ingress
2 parents 6d8c947 + c43c96d commit 2e1fdcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/js/toolbar/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
NavLink
1010
} from 'reactstrap';
1111

12+
const rootPath = window.location.pathname === '/' ? '' : window.location.pathname;
13+
1214
class ToolBar extends Component {
1315
constructor() {
1416
super();
@@ -24,7 +26,7 @@ class ToolBar extends Component {
2426
<NavbarBrand>GoStint</NavbarBrand>
2527
<Nav className="ml-auto" navbar>
2628
<NavItem>
27-
<NavLink href="/">Logout</NavLink>
29+
<NavLink href={rootPath}>Logout</NavLink>
2830
</NavItem>
2931
</Nav>
3032
</Navbar>

0 commit comments

Comments
 (0)