Skip to content

Commit

Permalink
backport of commit 32059ab (#23450)
Browse files Browse the repository at this point in the history
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
  • Loading branch information
1 parent 5bf9c25 commit 08dc887
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 08dc887

Please sign in to comment.