We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557c299 commit 2263acaCopy full SHA for 2263aca
pcweb/components/docpage/sidebar/sidebar_items/component_lib.py
@@ -6,7 +6,7 @@
6
def get_component_link(category, clist, prefix="") -> str:
7
component_name = rx.utils.format.to_kebab_case(clist[0])
8
# construct the component link. The component name points to the name of the md file.
9
- return f"/docs/library/{prefix}{category.lower().replace(' ', '-')}/{component_name.lower()}"
+ return f"/docs/library/{prefix.strip('/')}/{category.lower().replace(' ', '-')}/{component_name.lower()}"
10
11
12
def get_category_children(category, category_list, prefix=""):
0 commit comments