]> Untitled Git - lemmy-ui.git/commitdiff
use .replace() instead
authorAlec Armbruster <alectrocute@gmail.com>
Thu, 15 Jun 2023 16:38:42 +0000 (12:38 -0400)
committerAlec Armbruster <alectrocute@gmail.com>
Thu, 15 Jun 2023 16:38:42 +0000 (12:38 -0400)
src/shared/components/home/login.tsx

index 29972151508f1479221750e5f956d40141487d54..381c13bb0ce05dac89f5b3068009f5c59940c0d7 100644 (file)
@@ -188,7 +188,7 @@ export class Login extends Component<any, State> {
 
           i.props.history.action === "PUSH"
             ? i.props.history.back()
-            : i.props.history.push("/");
+            : i.props.history.replace("/");
 
           break;
         }