Merge branch '2024.9-rc' of github.com:cryptpad/cryptpad into 2024.9-rc

This commit is contained in:
yflory 2024-09-21 11:07:15 +02:00
commit f6e1eb068c
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}