Skip to content

Commit

Permalink
Fix reloading iframe content
Browse files Browse the repository at this point in the history
Remove origin from Iframe url

TASK: Fix types

BUGFIX: Create absolute URI in NodeInfoHelper.php

Revert "Remove origin from Iframe url"

This reverts commit d0c2f48.

Revert "Fix reloading iframe content"

This reverts commit 6af774e.
  • Loading branch information
3m5/frohberg committed Mar 14, 2024
1 parent afa5ccc commit c4ffef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/BackendServiceController.php
Expand Up @@ -585,7 +585,7 @@ public function flowQueryAction(array $chain): string
}

/** @see GetOperation */
assert(is_callable([$flowQuery, 'get']));
assert(is_object($flowQuery) && is_callable([$flowQuery, 'get']));

$nodeInfoHelper = new NodeInfoHelper();
$type = $finisher['type'] ?? null;
Expand Down
5 changes: 4 additions & 1 deletion Classes/Fusion/Helper/NodeInfoHelper.php
Expand Up @@ -350,7 +350,10 @@ public function uri(Node|NodeAddress $nodeAddress, ActionRequest $actionRequest)
$nodeAddressFactory = NodeAddressFactory::create($contentRepository);
$nodeAddress = $nodeAddressFactory->createFromNode($nodeAddress);
}
return (string)NodeUriBuilder::fromRequest($actionRequest)->uriFor($nodeAddress);
$uriBuilder = new UriBuilder();
$uriBuilder->setRequest($actionRequest);
$uriBuilder->setCreateAbsoluteUri(true);
return (string)NodeUriBuilder::fromUriBuilder($uriBuilder)->uriFor($nodeAddress);
}

public function previewUri(Node $node, ActionRequest $actionRequest): string
Expand Down

0 comments on commit c4ffef9

Please sign in to comment.