diff --git a/docs/source/_static/scripts/custom.js b/docs/source/_static/scripts/custom.js index eb8400dce..ca9c610ef 100644 --- a/docs/source/_static/scripts/custom.js +++ b/docs/source/_static/scripts/custom.js @@ -152,7 +152,7 @@ const generateComponentsGrid = () => { return } - if (window.location.pathname.endsWith('/index.html')) { + if (window.location.pathname === '/' || window.location.pathname.endsWith('/index.html')) { if (tocWrappers.length < 2) { return }