Skip to content

Commit c04bf1c

Browse files
authored
fix: add missing slash in package_path URL (#28)
1 parent b6f1f82 commit c04bf1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hexdocs/services/hexdocs.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ pub fn typesense_search(
5858

5959
pub fn package_path(document: Document) {
6060
case string.split_once(document.package, "-") {
61-
Ok(#(package, version)) -> package <> "/" <> version
62-
Error(Nil) -> document.package
61+
Ok(#(package, version)) -> "/" <> package <> "/" <> version
62+
Error(Nil) -> "/" <> document.package
6363
}
6464
}
6565

0 commit comments

Comments
 (0)