Topic: MDBNavLink not working

ronald.barrera free asked 2 years ago


**Expected behavior**

I'm using MDBNavLink, it does change the URL, but not the correct component. I'm using the latest version of mdb and "react-router-dom": "^5.1.2". I am adding screenshots of my navbar component and app.js

**Actual behavior**

**Resources (screenshots, code snippets etc.)**

enter image description here

enter image description here


ronald.barrera free answered 2 years ago


I was able to fix it, issued wrapped nav with Router twice, once in app.js and inside navbar component.


Jakub Chmura staff commented 2 years ago

I'm glad that your problem has been solved. If you have any further questions, please do not hesitate to ask us.

Best, Kuba


Hasi@14751033 free commented 2 years ago

No change the same issue is there for me also


Jakub Chmura staff commented 2 years ago

We have not yet fixed this error because we are working on important changes in the MDB package, but we are planning to fix this component.

Can you use your application using the workaround from above? If so, please use this option until we fix the issue.

Best, Kuba



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.3
  • Device: Macbook Pro
  • Browser: Chrome
  • OS: macOS Catalina
  • Provided sample code: No
  • Provided link: No