diff --git a/changelog/23446.txt b/changelog/23446.txt new file mode 100644 index 000000000000..e290eb2951f7 --- /dev/null +++ b/changelog/23446.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix bug where a change on OpenAPI added a double forward slash on some LIST endpoints. +``` diff --git a/ui/app/services/path-help.js b/ui/app/services/path-help.js index 59e584772503..78d617448a80 100644 --- a/ui/app/services/path-help.js +++ b/ui/app/services/path-help.js @@ -244,7 +244,7 @@ export default Service.extend({ return generatedItemAdapter.extend({ urlForItem(id, isList, dynamicApiPath) { - const itemType = getPath.path.slice(1); + const itemType = sanitizePath(getPath.path); let url; id = encodePath(id); // the apiPath changes when you switch between routes but the apiPath variable does not unless the model is reloaded