TabMenu should include subpaths in active tab detection #417
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
The TabMenu only checks if the current path matches with the tab menu path. I would suggest to include sub-paths in that check as well and thus use
startsWith
to check for an active path.primevue/src/components/tabmenu/TabMenu.vue
Line 53 in d624e17
So that for example if the menu points at
/items/
and we are at/items/edit/6
, I would say we are still in the items menu and it should be marked as active.The text was updated successfully, but these errors were encountered: