From e5a671e368c18baffceb34be6f420a99c7a0022a Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte Date: Wed, 1 Mar 2023 12:14:20 +0100 Subject: [PATCH] fix url creatioN --- internal/http/services/sciencemesh/apps.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/http/services/sciencemesh/apps.go b/internal/http/services/sciencemesh/apps.go index 34d95204b40..2070a3b3a24 100644 --- a/internal/http/services/sciencemesh/apps.go +++ b/internal/http/services/sciencemesh/apps.go @@ -52,6 +52,9 @@ func (h *appsHandler) init(c *config) error { func (h *appsHandler) shareInfo(p string) (*ocmpb.ShareId, string) { p = strings.TrimPrefix(p, h.ocmMountPoint) shareID, rel := router.ShiftPath(p) + if len(rel) > 0 { + rel = rel[1:] + } return &ocmpb.ShareId{OpaqueId: shareID}, rel }