diff --git a/docs/src/theme/Layout/index.js b/docs/src/theme/Layout/index.js index a0286812a..753af50af 100644 --- a/docs/src/theme/Layout/index.js +++ b/docs/src/theme/Layout/index.js @@ -32,7 +32,8 @@ export default function Layout(props) { const location = useLocation(); - const isAllowedPath = allowedPaths.includes(location.pathname); + const isAllowedPath = allowedPaths.some(path => location.pathname.startsWith(path)); + return (