From 76020f8af557294dc862f7cd768c218bf878b736 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Mon, 16 Sep 2024 17:09:59 +0200 Subject: [PATCH] fix(#1654): Fix the calendar sharing bug - The url was not initialised with the correct value for calendars. --- www/common/inner/common-modal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/inner/common-modal.js b/www/common/inner/common-modal.js index 12f6b39d1..a7a3de0c0 100644 --- a/www/common/inner/common-modal.js +++ b/www/common/inner/common-modal.js @@ -48,7 +48,8 @@ define([ data.password = priv.password; // Access modal and the pad is not stored: get the hashes from outer var hashes = priv.hashes || {}; - data.href = Hash.hashToHref(hashes.editHash || hashes.fileHash, priv.app); + // For calendars, individual href is passed via opts + data.href = ((priv.app === 'calendar') && opts.href) || Hash.hashToHref(hashes.editHash || hashes.fileHash, priv.app); if (hashes.viewHash) { data.roHref = Hash.hashToHref(hashes.viewHash, priv.app); }