summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share/MailNotifications.php22
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/private/Share/MailNotifications.php b/lib/private/Share/MailNotifications.php
index f71651e71fc..afecff0b97b 100644
--- a/lib/private/Share/MailNotifications.php
+++ b/lib/private/Share/MailNotifications.php
@@ -119,27 +119,9 @@ class MailNotifications {
}
}
- // Link to folder, or root folder if a file
-
- if ($itemType === 'folder') {
- $args = array(
- 'dir' => $filename,
- );
- } else if (strpos($filename, '/')) {
- $args = array(
- 'dir' => '/' . dirname($filename),
- 'scrollto' => basename($filename),
- );
- } else {
- $args = array(
- 'dir' => '/',
- 'scrollto' => $filename,
- );
- }
-
$link = $this->urlGenerator->linkToRouteAbsolute(
- 'files.view.index',
- $args
+ 'files.viewcontroller.showFile',
+ ['fileId' => $items[0]['item_source']]
);
list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration, 'internal');