mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
backport of commit 32059ab250 (#23450)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5bf9c25c8b
commit
08dc887a6e
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({
|
return generatedItemAdapter.extend({
|
||||||
urlForItem(id, isList, dynamicApiPath) {
|
urlForItem(id, isList, dynamicApiPath) {
|
||||||
const itemType = getPath.path.slice(1);
|
const itemType = sanitizePath(getPath.path);
|
||||||
let url;
|
let url;
|
||||||
id = encodePath(id);
|
id = encodePath(id);
|
||||||
// the apiPath changes when you switch between routes but the apiPath variable does not unless the model is reloaded
|
// 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