diff --git a/site/component/MainContent/index.jsx b/site/component/MainContent/index.jsx index bf337637c5..2908a7d4bb 100644 --- a/site/component/MainContent/index.jsx +++ b/site/component/MainContent/index.jsx @@ -26,8 +26,7 @@ export default class MainContent extends React.Component { } getActiveMenuItem(props) { - const routes = props.routes; - return routes[routes.length - 1].path; + return props.params.children; } fileNameToPath(fileName) {