diff --git a/core/js/dist/share_backend.js b/core/js/dist/share_backend.js
index 3feeaf3f674a583506dd54a8236f1b329954cb96..6336c11180d340d0b75db9047075b022211874d9 100644
Binary files a/core/js/dist/share_backend.js and b/core/js/dist/share_backend.js differ
diff --git a/core/js/dist/share_backend.js.map b/core/js/dist/share_backend.js.map
index 7f16538b0d26a5d634c7d35d6db1382fcd391f0e..3257bff20a9f45bcf4cb26fee1beeee7aa97b284 100644
Binary files a/core/js/dist/share_backend.js.map and b/core/js/dist/share_backend.js.map differ
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index 716df70c376b2bdd8bf90d23e64e94c3535a95ab..91101e47b2eefee22c18665a39c5fbbac05f44bd 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -579,19 +579,6 @@
 				!this.model.isFolder()
 				&& this.model.updatePermissionPossible();
 
-			var social = [];
-			OC.Share.Social.Collection.each(function(model) {
-				var url = model.get('url');
-				url = url.replace('{{reference}}', link);
-
-				social.push({
-					url: url,
-					label: t('core', 'Share to {name}', {name: model.get('name')}),
-					name: model.get('name'),
-					iconClass: model.get('iconClass'),
-					newWindow: model.get('newWindow')
-				});
-			});
 			var isExpirationEnforced = this.configModel.get('isDefaultExpireDateEnforced');
 
 			// what if there is another date picker on that page?
@@ -612,7 +599,6 @@
 			}
 
 			var popoverBase = {
-				social: social,
 				urlLabel: t('core', 'Link'),
 				hideDownloadLabel: t('core', 'Hide download'),
 				enablePasswordLabel: isPasswordEnforced ? t('core', 'Password protection enforced') : t('core', 'Password protect'),
@@ -653,8 +639,20 @@
 			var linkShares = this.getShareeList();
 			if(_.isArray(linkShares)) {
 				for (var i = 0; i < linkShares.length; i++) {
+					var social = [];
+					OC.Share.Social.Collection.each(function (model) {
+						var url = model.get('url');
+						url = url.replace('{{reference}}', linkShares[i].shareLinkURL);
+						social.push({
+							url: url,
+							label: t('core', 'Share to {name}', {name: model.get('name')}),
+							name: model.get('name'),
+							iconClass: model.get('iconClass'),
+							newWindow: model.get('newWindow')
+						});
+					});
 					var popover = this.getPopoverObject(linkShares[i])
-					linkShares[i].popoverMenu = this.popoverMenuTemplate(_.extend({}, popoverBase, popover));
+					linkShares[i].popoverMenu = this.popoverMenuTemplate(_.extend({}, popoverBase, popover, {social: social}));
 					linkShares[i].pendingPopoverMenu = pendingPopoverMenu
 				}
 			}