mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Add toggle function to project anchor label
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
+2
-1
@@ -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("/");
|
||||
|
||||
Reference in New Issue
Block a user