From: Alec Armbruster Date: Thu, 15 Jun 2023 16:38:42 +0000 (-0400) Subject: use .replace() instead X-Git-Url: http://these/git/readmes/%7B%60https:/static/git-favicon.png?a=commitdiff_plain;h=114ad262c3fd0da01fca98a4ea8fe094b953beb9;p=lemmy-ui.git use .replace() instead --- diff --git a/src/shared/components/home/login.tsx b/src/shared/components/home/login.tsx index 2997215..381c13b 100644 --- a/src/shared/components/home/login.tsx +++ b/src/shared/components/home/login.tsx @@ -188,7 +188,7 @@ export class Login extends Component { i.props.history.action === "PUSH" ? i.props.history.back() - : i.props.history.push("/"); + : i.props.history.replace("/"); break; }