diff --git a/pages/docs/[[...slug]].js b/pages/docs/[[...slug]].js
index 0b50373..6de3f86 100644
--- a/pages/docs/[[...slug]].js
+++ b/pages/docs/[[...slug]].js
@@ -57,7 +57,7 @@ function Sidebar({data}) {
{item.pages.map((page) => {
- const isActiveItem = (parsedPath === page.path);
+ const isActiveItem = (parsedPath === page.path && parsedTab === item.path) && isActiveToggle;
const itemClasses = {
'ms': true,
'active': isActiveItem,