79464682

Date: 2025-02-24 20:10:24
Score: 3
Natty:
Report link

Incase you're running the same issue as I.

I have just recently facing the same issue with page not found regardless with all the suggestions above.

It turns out that I'm using Bootstrap was the causes.

This didn't work

    <Nav.Link href="/contact">Contact</Nav.Link>
    or
    <Nav.Link href={import.meta.env.BASE_URL + 
    "contact"}>Contact</Nav.Link>

This worked

    import { Link } from "react-router-dom";
    
    <Nav.Link as={Link} to={"contact"}>Contact</Nav.Link>
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: user1998820