romsonic free asked 4 years ago


Hi All,

I'm having a hard time getting navlinks to work on localhost. If for example i add a external link to LinkedIn It just keeps adding:

http://localhost:3000/https://www.linkedin.com

<MDBNavLink to="https://www.linkedin.com">linkedin</MDBNavLink>

I've used the Supported Content navbar from this page:

https://mdbootstrap.com/docs/react/navigation/navbar/

What is the correct way to add links in the Navbar?


Konrad Stępień staff answered 4 years ago


Hi @romsonic, I suggest you than you replace this

<MDBNavLink to="https://www.linkedin.com">linkedin</MDBNavLink>

for this

<a href="https://www.linkedin.com" className="nav-link Ripple-parent">Link</a>

Because <MDBNavLink to="link"> redirects you to links in your domain


romsonic free commented 4 years ago

Brilliant, exactly what i needed. Thank you very much.


Konrad Stępień staff commented 4 years ago

Hi. I am glad that I could help.

Your regards, Konrad.



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.13.0
  • Device: PC
  • Browser: Chrome
  • OS: Lnux
  • Provided sample code: No
  • Provided link: Yes