Skip to content

Commit

Permalink
fix: use slashes to allow for prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone committed May 2, 2019
1 parent 1377ef2 commit db2f303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const LeftNavItem = props => {
element={Link}
partiallyActive
activeClassName="bx--side-nav__link--current"
to={items[0].path}
to={`/${items[0].path}`}
>
{category}
</SideNavLink>
Expand Down Expand Up @@ -63,7 +63,7 @@ const SubNavItems = ({ items, location, onClick }) => {
const active = isActive(item);
return (
<SideNavMenuItem
to={item.path}
to={`/${item.path}`}
onClick={onClick}
element={Link}
isActive={active}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class PageTabs extends React.Component {
const href = slug.replace(currentTab, slugifiedTab);
return (
<li key={tab} className={selected ? 'selected' : ''}>
<Link to={href}>{tab}</Link>
<Link to={`/${href}`}>{tab}</Link>
</li>
);
});
Expand Down

0 comments on commit db2f303

Please sign in to comment.