Breadcrumbs on a route with a url parameter

Closed
G General July 14, 2022
Login to reply
Coded Themes Support Agent
2 years ago

Closing ticket as there is no response from the user.

Feel free to reopen if needed further help.

Have a nice day!.

 

Coded Themes Support Agent
2 years ago

Hi,

Did you find it helpful? Let us know if you have further questions.


Thanks,

Rakesh

Note: Please review us on the store if you like the theme and support. Close the ticket if no more questions.

Amit Gorasiya
2 years ago

Hey, Gabriel Martinez

    - Replace below line of code in your file 'Breadcrumbs.tsx/.js' at directory '../src/components/@extended/'.

const getCollapse = (menu: NavItemType) => {
    if (menu.children) {
      menu.children.filter((collapse: NavItemType) => {
        if (collapse.type && collapse.type === 'collapse') {
          if (location.pathname.includes(collapse.url!)) {
            setMain(menu);
            setItem(collapse);
          }
          getCollapse(collapse as { children: NavItemType[]; type?: string });
        } else if (collapse.type && collapse.type === 'item') {
          if (location.pathname.includes(collapse.url!)) {
            setMain(menu);
            setItem(collapse);
          }
        }
        return false;
      });
    }
  };

If still you have any query, contact us!!

Thank You
Gabriel Martinez
2 years ago

Sorry,

I forget another attachments.. is to understand my problem.

Gabriel Martinez
2 years ago

Hi,

I'm trying to make a custom route with url parameter, this page doesn't appears in the menu, but I want to show correctly on the breadcrumbs and highlight on an item on the menu.

Additional Info

Order#: 47175

Purchase From?: mui.com

Name of Product/template: Berry Material UI React Typescript