Closed mapsmarketing closed 8 months ago
Hello! BasePath it's a configuration from next.js and it's outside the scope of this library,.
To use the nextjs navigation you will need tu pass the component Link
from Next module to the renderAs prop
<Navbar.Item renderAs={Link} href="/my-page">
My Page
</Navbar.Item>
All good @couds ! This was from months ago and I don't even remember much about it. I've since switched to MUI because it was much better. Cheers on the reply though
Describe the bug I noticed that when
basePath
is set in next.config.js it's not actually used byNavbar.Item
and I am assuming the same issue would apply across any other elements such asButton
, etc.To Reproduce Steps to reproduce the behavior:
basePath
is set in next.config.jsNavbar.Item
with ahref
Expected behavior If the
basePath
is set to /foo/bar theNavbar.Item
should use this in the href e.g. /foo/bar/my-page