8000 fix: use `replace` when redirecting from /health by aslilac · Pull Request #12039 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: use replace when redirecting from /health #12039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: use replace when redirecting from /health
`pushHistory` will break the back button, so we need to use `replaceHistory` instead
  • Loading branch information
aslilac committed Feb 6, 2024
commit 2aaed3238e4cd27dfd33600edc0f423c665bd1ef
2 changes: 1 addition & 1 deletion site/src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />} />
Expand Down
0