We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c3625 commit b8423f2Copy full SHA for b8423f2
1 file changed
src/generators/web/ui/components/NavBar.jsx
@@ -12,7 +12,7 @@ import Logo from '#theme/Logo';
12
/**
13
* NavBar component that displays the headings, search, etc.
14
*/
15
-export default ({ pathname }) => {
+export default ({ metadata }) => {
16
const [theme, toggleTheme] = useTheme();
17
18
return (
@@ -21,7 +21,7 @@ export default ({ pathname }) => {
21
sidebarItemTogglerAriaLabel="Toggle navigation menu"
22
navItems={[]}
23
>
24
- <SearchBox pathname={pathname} />
+ <SearchBox pathname={metadata.path} />
25
<ThemeToggle
26
onClick={toggleTheme}
27
aria-label={`Switch to ${theme === 'light' ? 'dark' : 'light'} theme`}
0 commit comments