Skip to content

Commit b8e32a3

Browse files
authored
fix: use replace when redirecting from /health (coder#12039)
`pushHistory` will break the back button, so we need to use `replaceHistory` instead
1 parent 3f04e98 commit b8e32a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/AppRouter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export const AppRouter: FC = () => {
387387
</Route>
388388

389389
<Route path="/health" element={<HealthLayout />}>
390-
<Route index element={<Navigate to="access-url" />} />
390+
<Route index element={<Navigate to="access-url" replace />} />
391391
<Route path="access-url" element={<AccessURLPage />} />
392392
<Route path="database" element={<DatabasePage />} />
393393
<Route path="derp" element={<DERPPage />} />

0 commit comments

Comments
 (0)