Skip to content

Commit

Permalink
fix: wrong dropdownItem link (#209)
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Kumar <[email protected]>
Co-authored-by: Animesh Pathak <[email protected]>
  • Loading branch information
AkashKumar7902 and Sonichigo authored Sep 20, 2023
1 parent e936bb8 commit 948dd8b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/theme/NavbarItem/DropdownNavbarItem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import {useLocation} from '@docusaurus/router';
import DropdownNavbarItem from '@theme-original/NavbarItem/DropdownNavbarItem';

export default function DropdownNavbarItemWrapper(props) {
const {search, hash} = useLocation();
props.items[0].to = `/docs/server/windows/installation${search}${hash}`;
return (
<>
<DropdownNavbarItem {...props} />
</>
);
}

0 comments on commit 948dd8b

Please sign in to comment.