Skip to content

Commit

Permalink
Merge pull request #1151 from nextcloud/enh/noid/view-share-direct-link
Browse files Browse the repository at this point in the history
Add 'direct' GET param to invite email 'view share' link
  • Loading branch information
julien-nc authored Jun 12, 2024
2 parents d98fa34 + 60e004c commit 6c22d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function sendGuestInviteMail(string $uid, string $shareWith, Share\IShare
$expiration = $share->getExpirationDate();

$link = $this->urlGenerator->linkToRouteAbsolute(
'files.viewcontroller.showFile', ['fileid' => $share->getNodeId()]
'files.viewcontroller.showFile', ['fileid' => $share->getNodeId(), 'direct' => 1]
);

$emailTemplate = $this->mailer->createEMailTemplate('guest.invite');
Expand Down

0 comments on commit 6c22d03

Please sign in to comment.