mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
Add scrollto to the url if sharing a file for long file lists
This commit is contained in:
parent
16dafa9cac
commit
aeef10eb47
1 changed files with 9 additions and 3 deletions
|
|
@ -100,13 +100,19 @@ class MailNotifications {
|
|||
}
|
||||
|
||||
// Link to folder, or root folder if a file
|
||||
|
||||
if ($itemType === 'folder') {
|
||||
$foldername = $filename;
|
||||
$args = array(
|
||||
'dir' => $filename,
|
||||
);
|
||||
} 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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue