From 74b483b481655dd6a7a88860f6ea8becdeb4e2b1 Mon Sep 17 00:00:00 2001 From: "kari.glover" Date: Tue, 19 Mar 2024 20:13:02 -0700 Subject: [PATCH] obo error when trimming relation url --- src/store/modules/lode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/lode.js b/src/store/modules/lode.js index 25a116577..20398b314 100644 --- a/src/store/modules/lode.js +++ b/src/store/modules/lode.js @@ -188,13 +188,13 @@ function trimUrl(url) { } let trimmed = url; if (trimmed["@value"] && typeof trimmed["@value"] === "string" && trimmed["@value"].endsWith("/")) { - trimmed["@value"] = trimmed["@value"].slice(0, trimmed["@value"].length - 2); + trimmed["@value"] = trimmed["@value"].slice(0, trimmed["@value"].length - 1); } if (trimmed["@value"] && typeof trimmed["@value"] === "string" && trimmed["@value"].startsWith("/")) { trimmed["@value"] = trimmed["@value"].slice(1); } if (trimmed && typeof trimmed === "string" && trimmed.endsWith("/")) { - trimmed = trimmed.slice(0, trimmed.length - 2); + trimmed = trimmed.slice(0, trimmed.length - 1); } if (trimmed && typeof trimmed === "string" && trimmed.startsWith("/")) { trimmed = trimmed.slice(1);