@next-core/brick-kit 2.177.0 → 2.177.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.
@@ -3331,9 +3331,11 @@
3331
3331
  if ("if" in data && data.if === null) {
3332
3332
  delete data.if;
3333
3333
  }
3334
- if ("to" in data) {
3335
- var _pipes$yaml;
3336
- data.to = data.to ? (_pipes$yaml = pipes.pipes.yaml(data.to)) !== null && _pipes$yaml !== void 0 ? _pipes$yaml : "" : "";
3334
+ if ("to" in data && data.to && !brickUtils.isEvaluable(data.to)) {
3335
+ var yaml = pipes.pipes.yaml(data.to);
3336
+ if (brickUtils.isObject(yaml) && ["pathname", "search", "hash"].some(key => brickUtils.hasOwnProperty(yaml, key))) {
3337
+ data.to = yaml;
3338
+ }
3337
3339
  }
3338
3340
  var newContext = context;
3339
3341
  if (overrideAppId !== context.app.id && attemptToVisit(data, ["APP", "I18N", "IMG"])) {