Fix measure breadcrumb category filter

When clicking a category name in the measure detail breadcrumb, users should be taken back to the measures list with that category filtered. Previously, the breadcrumb linked to a route that wasn't read by the measures page.

Changed the breadcrumb to use a ?category search param instead of a route segment, and updated the measures page to initialize and sync its category filter from the URL. Removed the now-unused category/:categoryId route.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-19 18:20:18 +01:00
parent 8ed6f1824f
commit ad7a3ecbe9
3 changed files with 23 additions and 10 deletions

View File

@@ -22,12 +22,6 @@ export const measureRoutes = [
() =>
import("#/pages/organizations/measures/MeasuresPageLoader"),
),
children: [
{
path: "category/:categoryId",
Component: Fragment,
},
],
},
{
path: "measures/:measureId",