fix: preserve frontend medication deep links

This commit is contained in:
Daniel Volz
2026-05-10 20:25:14 +02:00
committed by GitHub
parent d4b8ddc590
commit eba77c9520
5 changed files with 95 additions and 26 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ function AppContent() {
<AboutModal isOpen={showAbout} onClose={closeAbout} />
<Routes>
<Route path="/" element={<Navigate to="/dashboard" replace />} />
<Route path="/" element={<Navigate to={{ pathname: "/dashboard", search: location.search }} replace />} />
<Route path="/dashboard" element={<DashboardPage />} />
<Route path="/medications" element={<MedicationsPage />} />