backport of commit 32059ab250 (#23450)

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-10-02 16:56:03 -04:00
committed by GitHub
parent 5bf9c25c8b
commit 08dc887a6e
2 changed files with 4 additions and 1 deletions

3
changelog/23446.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix bug where a change on OpenAPI added a double forward slash on some LIST endpoints.
```

View File

@@ -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