diff --git a/docs/source/_static/scripts/custom.js b/docs/source/_static/scripts/custom.js index eb8400dce4..ca9c610ef4 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 }