From 16dafa9cac162f3dcf00998f6e2ffb2b6ee70813 Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Sat, 9 Aug 2014 00:08:45 +0100 Subject: [PATCH] Fix link to files and folders in internal share emails --- lib/private/share/mailnotifications.php | 7 +++---- 1 file 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)); -- 2.39.5