diff --git a/src/static/js/pad_editor.ts b/src/static/js/pad_editor.ts index a68217a88..2403c3e7a 100644 --- a/src/static/js/pad_editor.ts +++ b/src/static/js/pad_editor.ts @@ -86,6 +86,8 @@ const padeditor = (() => { $('#delete-pad').on('click', () => { if (window.confirm(html10n.get('pad.delete.confirm'))) { pad.collabClient.sendMessage({type: 'PAD_DELETE', data:{padId: pad.getPadId()}}); + // redirect to home page after deletion + window.location.href = '/'; } })