commit 4f679137f50e86ca302ee73aac88e71d15e95e2d
parent c38da7e6ba095f1cbed959f0a08ba804f789da47
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date: Thu, 24 Jun 2021 02:54:54 +0200
haredoc: fix breadcrumbs urls
Signed-off-by: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha
@@ -636,7 +636,7 @@ fn breadcrumb(ident: ast::ident) str = {
for (let i = 0z; i < len(ident) - 1; i += 1) {
let ipath = module::identpath(ident[..i+1]);
defer free(ipath);
- fmt::fprintf(buf, "<a href='{}'>{}</a>::", ipath, ident[i])!;
+ fmt::fprintf(buf, "<a href='/{}'>{}</a>::", ipath, ident[i])!;
};
fmt::fprint(buf, ident[len(ident) - 1])!;
return strio::finish(buf);