Bug fix for double slash in LIST endpoint (#23446)

* the fix

* changelog
This commit is contained in:
Angel Garbarino
2023-10-02 14:36:58 -06:00
committed by GitHub
parent cc6632e2c4
commit 32059ab250
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