Skip to content

Commit

Permalink
Bug fix for double slash in LIST endpoint (#23446)
Browse files Browse the repository at this point in the history
* the fix

* changelog
  • Loading branch information
Monkeychip authored Oct 2, 2023
1 parent cc6632e commit 32059ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/23446.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix bug where a change on OpenAPI added a double forward slash on some LIST endpoints.
```
2 changes: 1 addition & 1 deletion ui/app/services/path-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32059ab

Please sign in to comment.