mirror of
https://github.com/nextcloud/server.git
synced 2026-06-19 21:49:43 -04:00
Fix link to files and folders in internal share emails
This commit is contained in:
parent
7b6b99f55a
commit
16dafa9cac
1 changed files with 3 additions and 4 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue