rest-client-sdk 6.7.0 → 6.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rest-client-sdk",
3
- "version": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "description": "Rest Client SDK for API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -320,7 +320,8 @@ class AbstractClient<D extends MetadataDefinition> {
320
320
 
321
321
  if (this.sdk.mapping.idPrefix) {
322
322
  const segments = url.segment();
323
- if (`/${segments[0]}` !== this.sdk.mapping.idPrefix) {
323
+
324
+ if (!url.pathname().startsWith(this.sdk.mapping.idPrefix)) {
324
325
  segments.unshift(this.sdk.mapping.idPrefix);
325
326
  url.segment(segments);
326
327
  }