]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/app/navbar.tsx
Fix logout bug. Fixes #391 (#424)
[lemmy-ui.git] / src / shared / components / app / navbar.tsx
index 968128527dadc0459564be5c4893d26d76c86220..ceb497ffc1931f0fe1087df144718436d90b22ea 100644 (file)
@@ -429,7 +429,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
   handleLogoutClick(i: Navbar) {
     i.setState({ showDropdown: false, expanded: false });
     UserService.Instance.logout();
-    i.context.router.history.push("/");
+    window.location.href = "/";
     location.reload();
   }