diff --git a/src/components/CMSGuidesNav.astro b/src/components/CMSGuidesNav.astro
index ad7367b218419..d9d9b6e19bbaa 100644
--- a/src/components/CMSGuidesNav.astro
+++ b/src/components/CMSGuidesNav.astro
@@ -41,17 +41,4 @@ const links = enPages
.cms-nav > :global(*) {
margin-top: -2rem;
}
-
- .cms-nav > :global(* + *) {
- margin-top: -3rem;
- }
-
- .cms-nav :global(.scope) {
- font-weight: normal;
- color: var(--theme-text-lighter);
- }
-
- h3 {
- margin-bottom: 0;
- }
diff --git a/src/components/LeftSidebar/LeftSidebar.astro b/src/components/LeftSidebar/LeftSidebar.astro
index c3e73a7c94935..edf6e18ec6b90 100644
--- a/src/components/LeftSidebar/LeftSidebar.astro
+++ b/src/components/LeftSidebar/LeftSidebar.astro
@@ -35,7 +35,7 @@ let activeTab: 'learn' | 'api' = 'learn';
// Certain pages are not in the sidebar nav, so we manually set the active tab based on other factors (e.g. Algolia page category).
const isReference = ['Error Reference', 'Reference'].includes(
- getPageCategory(new URL(currentPage, import.meta.url))
+ getPageCategory({ pathname: currentPage })
);
if (isReference) {
activeTab = 'api';
diff --git a/src/components/LeftSidebar/SidebarContent.astro b/src/components/LeftSidebar/SidebarContent.astro
index 6afd711d034ab..22eb038d2334b 100644
--- a/src/components/LeftSidebar/SidebarContent.astro
+++ b/src/components/LeftSidebar/SidebarContent.astro
@@ -1,5 +1,6 @@
---
-import { getLanguageFromURL, removeSubpageSegment } from '../../util';
+import { getLanguageFromURL } from '~/util';
+import { isSubPage } from '~/util/isSubPage';
export interface Props {
type: TabType;
@@ -44,11 +45,7 @@ const lang = getLanguageFromURL(Astro.url.pathname);