Skip to content

Commit 2bc6eae

Browse files
authored
Merge pull request #531 from tsriram/hotfix/fix-sidebar-item-link
Use html anchor tag for sidebar anchor links
2 parents 369d381 + d24781c commit 2bc6eae

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)