From a0813b93e0b9681e9d74dde8b2f8798a39c24ad2 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 14 Mar 2019 11:46:27 +0100 Subject: [PATCH] Server-side render is-active for crawler --- website/src/components/sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/components/sidebar.js b/website/src/components/sidebar.js index ee1871e43..ec4f53122 100644 --- a/website/src/components/sidebar.js +++ b/website/src/components/sidebar.js @@ -54,6 +54,7 @@ const Sidebar = ({ items, pageMenu, slug }) => { const active = isActive || slug === url const itemClassNames = classNames(classes.link, { [classes.isActive]: active, + 'is-active': classes.isActive, }) return ( @@ -62,7 +63,6 @@ const Sidebar = ({ items, pageMenu, slug }) => { to={url} onClick={onClick} className={itemClassNames} - activeClassName={classNames('is-active', classes.isActive)} hideIcon > {text}