Skip to content

Commit

Permalink
Merge pull request #1347 from cassproject/ce-827
Browse files Browse the repository at this point in the history
Remove slash from end of url
  • Loading branch information
gloverkari authored Feb 21, 2024
2 parents 7a13792 + 41ed1fc commit b39f2c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lode/components/ThingEditing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit b39f2c9

Please sign in to comment.