Skip to content
Snippets Groups Projects
Commit aeef10eb authored by Tom Needham's avatar Tom Needham
Browse files

Add scrollto to the url if sharing a file for long file lists

parent 16dafa9c
No related branches found
No related tags found
Loading
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment