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:
@@ -22,12 +22,6 @@ export const measureRoutes = [
|
||||
() =>
|
||||
import("#/pages/organizations/measures/MeasuresPageLoader"),
|
||||
),
|
||||
children: [
|
||||
{
|
||||
path: "category/:categoryId",
|
||||
Component: Fragment,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "measures/:measureId",
|
||||
|
||||
Reference in New Issue
Block a user