Skip to content

Commit 6c21902

Browse files
devin-ai-integration[bot]carlosreflexcarlosabadia
authored
Fix enterprise sidebar Components link to remove /index/ suffix (#1502)
* Fix enterprise sidebar Components link to remove /index/ suffix - Changed AG Grid link from /docs/enterprise/ag_grid/index/ to /docs/enterprise/ag_grid/ - Fixes incorrect link in enterprise overview page sidebar Components section - Tested locally to verify link now points to correct URL Co-Authored-By: Carlos Cutillas <[email protected]> * fix --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Carlos Cutillas <[email protected]> Co-authored-by: carlosabadia <[email protected]>
1 parent 5e95035 commit 6c21902

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

pcweb/components/docpage/sidebar/sidebar.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
from .sidebar_items.ai import ai_builder_overview_items
1212
from .sidebar_items.component_lib import component_lib, graphing_libs
13-
from .sidebar_items.enterprise import enterprise_items, enterprise_usage_items, enterprise_component_items
13+
from .sidebar_items.enterprise import (
14+
enterprise_items,
15+
enterprise_usage_items,
16+
enterprise_component_items,
17+
)
1418
from .sidebar_items.learn import backend, cli_ref, frontend, hosting, learn
1519
from .sidebar_items.recipes import recipes
1620
from .sidebar_items.reference import api_reference
@@ -552,7 +556,9 @@ def sidebar_comp(
552556
rx.link( # pyright: ignore [reportCallIssue]
553557
rx.box( # pyright: ignore [reportCallIssue]
554558
rx.box( # pyright: ignore [reportCallIssue]
555-
rx.icon("atom", size=16), # pyright: ignore [reportCallIssue]
559+
rx.icon(
560+
"atom", size=16
561+
), # pyright: ignore [reportCallIssue]
556562
rx.el.h5(
557563
"Custom Components",
558564
class_name="font-smbold text-[0.875rem] text-slate-12 leading-5 tracking-[-0.01313rem] transition-color",
@@ -596,7 +602,9 @@ def sidebar_comp(
596602
),
597603
create_sidebar_section(
598604
"Components",
599-
enterprise.ag_grid.index.path,
605+
enterprise_component_items[0]
606+
.children[0]
607+
.link.replace("_", "-"),
600608
enterprise_component_items,
601609
enterprise_index,
602610
url,

0 commit comments

Comments
 (0)