fix: unique keyHash in download URL path + 2s reload delay for save callback

This commit is contained in:
root
2026-07-16 12:12:31 +00:00
parent 63291169ba
commit fce938b0c2
5 changed files with 38 additions and 10 deletions

View File

@@ -283,9 +283,11 @@ function closeOnlyofficeEditor() {
// Reload the page to clear ONLYOFFICE's in-memory state.
// Save the active page so the user returns to Templates automatically
sessionStorage.setItem('returnPage', 'templates');
// Wait 2 seconds for the save callback (status=2) to complete
// on our backend before reloading the page
setTimeout(() => {
location.reload();
}, 300);
}, 2000);
}
// Open ONLYOFFICE editor in a modal