fix: use `replace` when redirecting from /health (#12039)

`pushHistory` will break the back button, so we need to use `replaceHistory` instead
This commit is contained in:
Kayla Washburn-Love 2024-02-06 14:27:32 -07:00 committed by GitHub
parent 3f04e98cfa
commit b8e32a37de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ export const AppRouter: FC = () => {
</Route>
<Route path="/health" element={<HealthLayout />}>
<Route index element={<Navigate to="access-url" />} />
<Route index element={<Navigate to="access-url" replace />} />
<Route path="access-url" element={<AccessURLPage />} />
<Route path="database" element={<DatabasePage />} />
<Route path="derp" element={<DERPPage />} />