@praxisui/core 0.0.1 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1004,7 +1004,7 @@ class GenericCrudService {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
resource = resource.replace(/^\/+/, '');
|
|
1006
1006
|
// Normalize known suffixes accidentally passed as part of the resource path
|
|
1007
|
-
// Avoid cases like "
|
|
1007
|
+
// Avoid cases like "module/items/filter" which would lead to duplicate suffixes (e.g., "/filter/filter")
|
|
1008
1008
|
resource = resource.replace(/\/(?:filter|all)(?:\/?$)/i, '');
|
|
1009
1009
|
// Remove duplicated `api` segments only if base URL already contains `/api`
|
|
1010
1010
|
try {
|