Add toggle function to project anchor label

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2021-10-29 08:52:12 +02:00
parent 0c2aecde72
commit 2c3f6c3238
3 changed files with 22 additions and 9 deletions
+2 -1
View File
@@ -125,7 +125,8 @@ export function path(
result.push("head");
}
if (path) {
// Avoids appending a slash when the path is the root directory.
if (path && path !== "/") {
result.push(path);
}
return "/" + result.join("/");