From 983bcc240a21ab5bc7545b584f52b6d154fceed3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 26 May 2024 03:46:25 +0200 Subject: [PATCH] [Docs] A more robust interceptor for the grid rendering. --- docs/source/_static/scripts/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }