{{ define "root-link" }} {{ $rootURL := url "/" }} {{ if .Request.Share.ID }} {{ $rootURL = printf "%s%s/" $rootURL .Request.Share.ID }} {{ end }} {{ if .Request.Share.ID }}{{ .Request.Share.RootName }}{{ else }}fibr{{ end }} {{ end }}