Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDBNavLink not working

ronald.barrera free asked 4 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 4 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 4 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 4 years ago

No change the same issue is there for me also


Jakub Chmura staff commented 4 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

  • ForumUser: 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