Skip to content

Commit

Permalink
do not add basePath to the links (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Aug 15, 2022
1 parent 24a02f8 commit a9ca0b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-lizards-fry.md
@@ -0,0 +1,5 @@
---
'nextra-theme-docs': patch
---

do not add `basePath` to the links
2 changes: 1 addition & 1 deletion packages/nextra-theme-docs/src/components/search.tsx
Expand Up @@ -203,7 +203,7 @@ export function Search({
>
<Anchor
className="block no-underline scroll-m-12 !text-current hover:!bg-transparent !p-0"
href={router.basePath + route}
href={route}
onMouseMove={() => setActive(i)}
onClick={finishSearch}
>
Expand Down

0 comments on commit a9ca0b9

Please sign in to comment.