Skip to content

CBreadcrumbRouter and CSidebarNav not supporting route parameters #118

Closed
@de1mat

Description

@de1mat

I have the following example routes:

{ path: '/websites', name: 'Websites', component: Websites, exact: true },
{ path: '/websites/:websiteId', name: 'Website', component: EditWebsite, exact: true },

If I go to /websites then the breadcrumb shows "Home > Websites" which is correct. And the Sidebar correctly highlights "Websites" in the list.

If I go to /websites/12345 then the breadcrumb still shows "Home > Websites". It should show "Home > Websites > Website". And the Sidebar is no longer highlighting "Websites" even though I am in a subroute of /websites still.

Both these scenarios worked perfectly in CoreUI 2.0.

Is there something I need to change? Or do these newer components not support route parameters yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions