Add scrollto to the url if sharing a file for long file lists
This commit is contained in:
parent
16dafa9cac
commit
aeef10eb47
|
@ -100,13 +100,19 @@ class MailNotifications {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Link to folder, or root folder if a file
|
// Link to folder, or root folder if a file
|
||||||
|
|
||||||
if ($itemType === 'folder') {
|
if ($itemType === 'folder') {
|
||||||
$foldername = $filename;
|
$args = array(
|
||||||
|
'dir' => $filename,
|
||||||
|
);
|
||||||
} else {
|
} 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);
|
list($htmlMail, $alttextMail) = $this->createMailBody($filename, $link, $expiration);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue