Skip to content

Commit ff2150d

Browse files
committed
fix(webapp): docsPath tolerates a leading slash
1 parent 75938a4 commit ff2150d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/webapp/app/utils/pathBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ export function docsRoot() {
838838
}
839839

840840
export function docsPath(path: string) {
841-
return `${docsRoot()}/${path}`;
841+
return `${docsRoot()}/${path.replace(/^\//, "")}`;
842842
}
843843

844844
export function docsTroubleshootingPath(path: string) {

0 commit comments

Comments
 (0)