Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
update routes for website
Browse files Browse the repository at this point in the history
  • Loading branch information
nahtnam committed Jun 3, 2019
1 parent 73dfa4a commit ffcf141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions website/src/components/Navigation.jsx
Expand Up @@ -53,10 +53,10 @@ class Navigation extends React.Component {
<a href="/" className={classnames('navbar-item', { 'is-active': route === '/' })} role="navigation" onClick={this.closeMenu}>
Home
</a>
<a href="/guides" className={classnames('navbar-item', { 'is-active': route === '/login' })} role="navigation" onClick={this.closeMenu}>
<a href="/guides/getting-started" className={classnames('navbar-item', { 'is-active': route.includes('/guides') })} role="navigation" onClick={this.closeMenu}>
Guides
</a>
<a href="/docs" className={classnames('navbar-item', { 'is-active': route === '/login' })} role="navigation" onClick={this.closeMenu}>
<a href="/docs/server" className={classnames('navbar-item', { 'is-active': route.includes('/docs') })} role="navigation" onClick={this.closeMenu}>
Docs
</a>
</div>
Expand Down
4 changes: 0 additions & 4 deletions website/src/next.config.js
Expand Up @@ -11,10 +11,6 @@ module.exports = withSass({
async exportPathMap() {
const routes = {
'/': { page: '/' },
'/guides': { page: '/guides' },
'/guides/': { page: '/guides' },
'/docs': { page: '/docs' },
'/docs/': { page: '/docs' },
};

const processRoutes = (obj, prefix) => {
Expand Down

0 comments on commit ffcf141

Please sign in to comment.