summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/share/mailnotifications.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php
index 62ab210b99e..1f4645eed9f 100644
--- a/lib/private/share/mailnotifications.php
+++ b/lib/private/share/mailnotifications.php
@@ -100,13 +100,19 @@ class MailNotifications {
}
// Link to folder, or root folder if a file
+
if ($itemType === 'folder') {
- $foldername = $filename;
+ $args = array(
+ 'dir' => $filename,
+ );
} else {
- $foldername = "/";
+ $args = array(
+ 'dir' => '/',
+ 'scrollto' => $filename,
+ );
}
- $link = \OCP\Util::linkToAbsolute('files', 'index.php', array("dir" => $foldername));
+ $link = \OCP\Util::linkToAbsolute('files', 'index.php', $args);
list($htmlMail, $alttextMail) = $this->createMailBody($filename, $link, $expiration);