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 authored and mhsdesign committed Apr 3, 2024
1 parent 148a427 commit 93a8a85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/Fusion/Helper/NodeInfoHelper.php
Expand Up @@ -344,7 +344,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 93a8a85

Please sign in to comment.