Skip to content

Commit d09d8c3

Browse files
committed
feat: add redirect from old route "collections" to new route "capture-sets"
1 parent 5c77de4 commit d09d8c3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ui/src/app.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export const App = () => (
110110
/>
111111
<Route path="summary" element={<Summary />} />
112112
<Route path="capture-sets" element={<CaptureSets />} />
113+
<Route path="collections" element={<Collections />} />
113114
<Route path="exports/:id?" element={<Exports />} />
114115
<Route
115116
path="processing-services/:id?"
@@ -282,3 +283,15 @@ const NotFound = () => (
282283
</main>
283284
</>
284285
)
286+
287+
/* We have changed the wording from "Collections" to "Capture sets". This will redirect users to the new route. */
288+
const Collections = () => {
289+
const { projectId } = useParams()
290+
291+
return (
292+
<Navigate
293+
replace
294+
to={APP_ROUTES.CAPTURE_SETS({ projectId: projectId as string })}
295+
/>
296+
)
297+
}

0 commit comments

Comments
 (0)