Skip to content

Commit

Permalink
Fix outline urls, remove path from outline links (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba authored May 12, 2024
1 parent 0c3193e commit a9ace21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/Outline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ function Items({
onClickItem?: () => void
setActiveId: (id: string) => void
}) {
const { pathname } = useLocation()

return (
<ul className={styles.items}>
{levelItems.map(({ id, level, text }) => {
Expand All @@ -229,7 +227,7 @@ function Items({
<li className={styles.item}>
<Link
data-active={isActive}
to={`${pathname}${hash}`}
to={hash}
onClick={() => {
onClickItem?.()
setActiveId(id)
Expand Down

0 comments on commit a9ace21

Please sign in to comment.