]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix link to files and folders in internal share emails
authorTom Needham <tom@owncloud.com>
Fri, 8 Aug 2014 23:08:45 +0000 (00:08 +0100)
committerTom Needham <tom@owncloud.com>
Mon, 11 Aug 2014 17:25:01 +0000 (18:25 +0100)
lib/private/share/mailnotifications.php

index cb74dcf8b9065c80c7a228105ad37dca36ad9706..62ab210b99eef7b65568ee270124961732da2104 100644 (file)
@@ -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));