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

Commit

Permalink
Merge pull request #79 from gbevan/D20181230_fix_logout_token_exp
Browse files Browse the repository at this point in the history
fix logout option behind ingress
  • Loading branch information
gbevan authored Dec 30, 2018
2 parents 6d8c947 + c43c96d commit 2e1fdcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/js/toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
NavLink
} from 'reactstrap';

const rootPath = window.location.pathname === '/' ? '' : window.location.pathname;

class ToolBar extends Component {
constructor() {
super();
Expand All @@ -24,7 +26,7 @@ class ToolBar extends Component {
<NavbarBrand>GoStint</NavbarBrand>
<Nav className="ml-auto" navbar>
<NavItem>
<NavLink href="/">Logout</NavLink>
<NavLink href={rootPath}>Logout</NavLink>
</NavItem>
</Nav>
</Navbar>
Expand Down

0 comments on commit 2e1fdcf

Please sign in to comment.