Skip to content

Commit 09fbc32

Browse files
Add prescriptions redirect
Redirect /prescriptions to /prescription-scanner to fix 404 and ensure navigation routes exist by adding a redirect route in App.tsx. X-Lovable-Edit-ID: edt-0896fbee-f538-4bee-b98e-04a6255b538a
2 parents 62dcd8f + 13f4b1b commit 09fbc32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const App = () => (
6868
<Route path="/verify" element={<ProtectedRoute><DrugVerification /></ProtectedRoute>} />
6969
<Route path="/interactions" element={<ProtectedRoute><DrugInteractions /></ProtectedRoute>} />
7070
<Route path="/prescription-scanner" element={<ProtectedRoute><PrescriptionScanner /></ProtectedRoute>} />
71+
<Route path="/prescriptions" element={<Navigate to="/prescription-scanner" replace />} />
7172
<Route path="/history" element={<ProtectedRoute><MedicalHistory /></ProtectedRoute>} />
7273
<Route path="/safety" element={<ProtectedRoute><SafetyScore /></ProtectedRoute>} />
7374
<Route path="/pharmacist" element={<ProtectedRoute><PharmacistVerification /></ProtectedRoute>} />

0 commit comments

Comments
 (0)