diff --git a/photologue/static/lightgallery/plugins/admin/lg-admin.js b/photologue/static/lightgallery/plugins/admin/lg-admin.js index 3faef11..1fbdd8f 100644 --- a/photologue/static/lightgallery/plugins/admin/lg-admin.js +++ b/photologue/static/lightgallery/plugins/admin/lg-admin.js @@ -50,6 +50,7 @@ class lgAdmin { data.append('csrfmiddlewaretoken', this.csrfToken); fetch(`/photo/${this.photoId}/delete/`, { method: "POST", + redirect: "manual", // do not load gallery again body: data, credentials: 'same-origin', }).then(res => { @@ -74,6 +75,7 @@ class lgAdmin { data.append('csrfmiddlewaretoken', this.csrfToken); fetch(`/photo/${this.photoId}/report/`, { method: "POST", + redirect: "manual", // do not load gallery again body: data, credentials: 'same-origin', }).then(res => {