mirror of https://github.com/coder/coder.git
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:
parent
3f04e98cfa
commit
b8e32a37de
|
@ -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 />} />
|
||||
|
|
Loading…
Reference in New Issue