akveo / akveo/nebular

nb-menuitem: routerlink active not updating when using parametrs

Open
#2,405 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue type

**I'm submitting a ...

* [ x] bug report

### Issue description

**Current behavior:**
When defining routes without parameters e.g:
` {
path: 'assets/hw',
component: AssetsHardwareComponent,
},`
the active route is updated in NbMenuItem.
When adding a parameter e.g:
` {
path: 'assets/hw/:id',
component: AssetsHardwareComponent,
},`
the active route is NOT updated and the old Navigation Item stays active.

**Expected behavior:**
Active nbmenuitem should be updated when using parameters.

**Steps to reproduce:**
define route with parameter `(:id)`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.