@social-mail/social-mail-client 1.2.673 → 1.2.674

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.
@@ -25310,13 +25310,13 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
25310
25310
  execute: function () {
25311
25311
  _export("StoreUrlService", StoreUrlService = {
25312
25312
  productUrl(p) {
25313
- var _a;
25314
- const storeID = toBase36(p.storeID);
25315
- const productID = toBase36((_a = p.variantForID) !== null && _a !== void 0 ? _a : p.storeItemID);
25313
+ var _a, _b;
25314
+ const name = encodeURIComponent(Slugger.slug((_a = p.variantForID) !== null && _a !== void 0 ? _a : p.storeItemID, p.name));
25315
+ const productID = toBase36((_b = p.variantForID) !== null && _b !== void 0 ? _b : p.storeItemID);
25316
25316
  if (AppLocation.isLocalTesting) {
25317
- return `?detail=store/${productID}`;
25317
+ return `?detail=store/${productID}/${name}`;
25318
25318
  }
25319
- return `/store/${productID}/${encodeURIComponent(Slugger.slug(productID, p.name))}`;
25319
+ return `/store/${productID}/${name}`;
25320
25320
  },
25321
25321
  assetUrl(item, file) {
25322
25322
  return `/social-mail/sd/view/${item.publicFolderID}/${file.appFileID}/${file.appFile.name}`;