From 41ed1fc00396c2bf4b979da67bb5cb5367ce97a3 Mon Sep 17 00:00:00 2001 From: "kari.glover" Date: Tue, 20 Feb 2024 16:46:24 -0800 Subject: [PATCH] Remove slash from end of url --- src/lode/components/ThingEditing.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lode/components/ThingEditing.vue b/src/lode/components/ThingEditing.vue index f1f9611b8..f3af5942d 100644 --- a/src/lode/components/ThingEditing.vue +++ b/src/lode/components/ThingEditing.vue @@ -842,7 +842,9 @@ export default { saveNewProperty: async function() { // Validate input var property = this.addingProperty; + // Remove unnecessary slash from end of url. github #827 var value = (this.addingValues.length > 0) ? this.addingValues[0] : undefined; + value = value.endsWith("/") ? value.slice(0, value.length - 1) : value; var range = this.addingRange; this.errorMessage = []; this.errorMessage = [];