14198: Expand federation support for collections and links
[arvados.git] / lib / controller / fed_generic.go
index 6c8135cf91253a004971399ef0a49a5fe07bf34d..9c8b1614bcdcceaa4be70bcba15fa694e26940dc 100644 (file)
@@ -295,8 +295,13 @@ func (h *genericFederatedRequestHandler) ServeHTTP(w http.ResponseWriter, req *h
                return
        }
 
+       var uuid string
+       if len(m[1]) > 0 {
+               // trim leading slash
+               uuid = m[1][1:]
+       }
        for _, d := range h.delegates {
-               if d(h, effectiveMethod, &clusterId, m[1], m[3], w, req) {
+               if d(h, effectiveMethod, &clusterId, uuid, m[3], w, req) {
                        return
                }
        }