mirror of
https://github.com/coder/coder.git
synced 2026-09-22 13:10:21 +08:00
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:
@@ -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 />} />
|
||||
|
||||
Reference in New Issue
Block a user