Skip to content

Commit d24781c

Browse files
committed
use html anchor tag for sidebar anchor links
1 parent 2d53268 commit d24781c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/sidebar-item/sidebar-item.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class SidebarItem extends React.Component {
2525
{
2626
anchors.map((anchor, j) => (
2727
<li className="sidebar-item__anchor" key={ `anchor-${index}-${j}` }>
28-
<Link to={ `${url}#${anchor.id}` }>{ anchor.title }</Link>
28+
<a href={ '#' + anchor.id }>{ anchor.title}</a>
2929
</li>
3030
))
3131
}

0 commit comments

Comments
 (0)