From b4471c2591caed072b7810610543969c86a6e024 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 6 May 2015 15:44:19 +0200 Subject: [PATCH] Fix the share mail notification when the item is in a folder --- lib/private/share/mailnotifications.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php index 1c15b6e3e1..7120d8493b 100644 --- a/lib/private/share/mailnotifications.php +++ b/lib/private/share/mailnotifications.php @@ -122,6 +122,11 @@ class MailNotifications { $args = array( 'dir' => $filename, ); + } else if (strpos($filename, '/')) { + $args = array( + 'dir' => '/' . dirname($filename), + 'scrollto' => basename($filename), + ); } else { $args = array( 'dir' => '/',