From abdb03dfc08a2ece3bbba78c850efa74125a6afd Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 1 Dec 2021 00:10:40 +0000 Subject: [PATCH] Make redirects work --- client/src/util/misc.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/util/misc.ts b/client/src/util/misc.ts index 5e5f91253..fefb8d715 100644 --- a/client/src/util/misc.ts +++ b/client/src/util/misc.ts @@ -191,9 +191,9 @@ export function Sleep(ms: number) { } export function HistorySafeGoBack(history: ReturnType) { - if (history.length === 1) { - history.replace("/"); - } else { - history.goBack(); - } + // if (history.length === 1) { + history.replace("/"); + // } else { + // history.goBack(); + // } }