Skip to content

Commit

Permalink
Replace backslash with forward slash
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf committed Jan 22, 2024
1 parent affc3cf commit f38bcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcweb/pages/docs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def build_nested_namespace(
continue

# Get the docpage component.
route = f"/{doc.replace('.md', '')}"
route = f"/{doc.replace('.md', '')}".replace("\\", "/")
path = doc.split("/")[1:-1]
title = rx.utils.format.to_snake_case(os.path.basename(doc).replace(".md", ""))
category = os.path.basename(os.path.dirname(doc)).title()
Expand Down

0 comments on commit f38bcba

Please sign in to comment.