From 08dc887a6ea7d06cded3ea387acd094256972d98 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:56:03 -0400 Subject: [PATCH] backport of commit 32059ab2505b29e2d82507a27150cc85000db770 (#23450) Co-authored-by: Angel Garbarino --- changelog/23446.txt | 3 +++ ui/app/services/path-help.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/23446.txt 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