SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer: UI ensure a correct foler link
Chris Lu1f400489c608
diff --git a/weed/server/filer_ui/breadcrumb.go b/weed/server/filer_ui/breadcrumb.goindex 55a1909a88..2f0df7f91f 100644--- a/weed/server/filer_ui/breadcrumb.go+++ b/weed/server/filer_ui/breadcrumb.go@@ -14,10 +14,14 @@ func ToBreadcrumb(fullpath string) (crumbs []Breadcrumb) {parts := strings.Split(fullpath, "/")for i := 0; i < len(parts); i++ {- crumbs = append(crumbs, Breadcrumb{- Name: parts[i] + "/",+ crumb := Breadcrumb{+ Name: parts[i] + " /",Link: "/" + filepath.ToSlash(filepath.Join(parts[0:i+1]...)),- })+ }+ if !strings.HasSuffix(crumb.Link, "/") {+ crumb.Link += "/"+ }+ crumbs = append(crumbs, crumb)}returndiff --git a/weed/server/filer_ui/templates.go b/weed/server/filer_ui/templates.goindex 8847989368..c4555afc35 100644--- a/weed/server/filer_ui/templates.go+++ b/weed/server/filer_ui/templates.go@@ -50,7 +50,7 @@ var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(`<!DOC<div class="row"><div>{{ range $entry := .Breadcrumbs }}- <a href={{ $entry.Link }} >+ <a href="{{ $entry.Link }}" >{{ $entry.Name }}</a>{{ end }}