--- title: href --- # href [MODES: framework] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.href.html) Returns a resolved URL path for the specified route. ```tsx const h = href("/:lang?/about", { lang: "en" }) // -> `/en/about` ```