mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Bug fix for double slash in LIST endpoint (#23446)
* the fix * changelog
This commit is contained in:
3
changelog/23446.txt
Normal file
3
changelog/23446.txt
Normal 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.
|
||||
```
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user