Skip to content

Commit 01abebd

Browse files
authored
After delete the user will now redirected to home page (#7072)
1 parent 43ceda1 commit 01abebd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/static/js/pad_editor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ const padeditor = (() => {
8686
$('#delete-pad').on('click', () => {
8787
if (window.confirm(html10n.get('pad.delete.confirm'))) {
8888
pad.collabClient.sendMessage({type: 'PAD_DELETE', data:{padId: pad.getPadId()}});
89+
// redirect to home page after deletion
90+
window.location.href = '/';
8991
}
9092
})
9193

0 commit comments

Comments
 (0)