Skip to content

Commit 2263aca

Browse files
authored
ENG-6641: Fix double / on graphing routes (#1477)
1 parent 557c299 commit 2263aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcweb/components/docpage/sidebar/sidebar_items/component_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
def get_component_link(category, clist, prefix="") -> str:
77
component_name = rx.utils.format.to_kebab_case(clist[0])
88
# 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()}"
9+
return f"/docs/library/{prefix.strip('/')}/{category.lower().replace(' ', '-')}/{component_name.lower()}"
1010

1111

1212
def get_category_children(category, category_list, prefix=""):

0 commit comments

Comments
 (0)