Skip to content

Commit

Permalink
Fixed remote redirect URL for federation shared files
Browse files Browse the repository at this point in the history
Signed-off-by: hopleus <[email protected]>
  • Loading branch information
hopleus committed Feb 19, 2024
1 parent a4f7e35 commit e4e0767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/FederationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function getRemoteRedirectURL(File $item, $direct = null) {
} else {
$wopi = $this->tokenManager->getRemoteTokenFromDirect($item, $direct->getUid());
}
$url = $remote . 'index.php/apps/officeonline/remote?shareToken=' . $item->getStorage()->getToken() .
$url = $remote . '/apps/officeonline/remote?shareToken=' . $item->getStorage()->getToken() .
'&remoteServer=' . $wopi->getServerHost() .
'&remoteServerToken=' . $wopi->getToken();
if ($item->getInternalPath() !== '') {
Expand Down

0 comments on commit e4e0767

Please sign in to comment.