diff options
-rw-r--r-- | lib/private/share/mailnotifications.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php index cb74dcf8b90..62ab210b99e 100644 --- a/lib/private/share/mailnotifications.php +++ b/lib/private/share/mailnotifications.php @@ -99,12 +99,11 @@ class MailNotifications { } } + // Link to folder, or root folder if a file if ($itemType === 'folder') { - $foldername = "/Shared/" . $filename; + $foldername = $filename; } else { - // if it is a file we can just link to the Shared folder, - // that's the place where the user will find the file - $foldername = "/Shared"; + $foldername = "/"; } $link = \OCP\Util::linkToAbsolute('files', 'index.php', array("dir" => $foldername)); |