mirror of https://github.com/xwiki-labs/cryptpad
Merge branch '2024.9-rc' of github.com:cryptpad/cryptpad into 2024.9-rc
This commit is contained in:
commit
f6e1eb068c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue