@apia/api 4.0.95 → 4.0.98

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/dist/index.js CHANGED
@@ -543,7 +543,11 @@ function makeApiaUrl(props) {
543
543
  actualAjaxUrl = actualAjaxUrl.match(
544
544
  new RegExp(`^(?:(?:/?${contextWord})?/)?(.+)$`)
545
545
  )?.[1];
546
- return `${contextWord ? "/" : ""}${contextWord}/${actualAjaxUrl}?${timestamp}${!props?.preventAsXmlParameter ? "asXml=true&" : ""}${props?.queryString ? `${props.queryString}&` : ""}${queryString ? `${queryString}&` : ""}${tabId}`;
546
+ let returnUrl = `${contextWord ? "/" : ""}${contextWord}/${actualAjaxUrl}?${timestamp}${!props?.preventAsXmlParameter ? "asXml=true&" : ""}${props?.queryString ? `${props.queryString}&` : ""}${queryString ? `${queryString}&` : ""}${tabId}`;
547
+ if (returnUrl.endsWith("&")) {
548
+ returnUrl = returnUrl.substring(0, returnUrl.length - 1);
549
+ }
550
+ return returnUrl;
547
551
  }
548
552
  function getModal$1(name) {
549
553
  return window[name];