aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-11-05 16:36:34 +0100
committerGitHub <noreply@github.com>2020-11-05 16:36:34 +0100
commit47d15818502b11315b484131aaf67a3e3f441c5a (patch)
treefa37c5e2754a6c8c174411da4c2d80964ad33db1 /application
parenta4a59e183e565a6933925b3cb30fc8393639ac5a (diff)
parent330ac859fb13a3a15875f185a611bfaa6c5f5587 (diff)
downloadShaarli-47d15818502b11315b484131aaf67a3e3f441c5a.tar.gz
Shaarli-47d15818502b11315b484131aaf67a3e3f441c5a.tar.zst
Shaarli-47d15818502b11315b484131aaf67a3e3f441c5a.zip
Merge pull request #1624 from ArthurHoaro/fix/delete-redirect
Fix: redirect to referrer after bookmark deletion
Diffstat (limited to 'application')
-rw-r--r--application/front/controller/admin/ShaareManageController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/front/controller/admin/ShaareManageController.php b/application/front/controller/admin/ShaareManageController.php
index 7ceb8d8a..2ed298f5 100644
--- a/application/front/controller/admin/ShaareManageController.php
+++ b/application/front/controller/admin/ShaareManageController.php
@@ -66,8 +66,8 @@ class ShaareManageController extends ShaarliAdminController
66 return $response->write('<script>self.close();</script>'); 66 return $response->write('<script>self.close();</script>');
67 } 67 }
68 68
69 // Don't redirect to where we were previously because the datastore has changed. 69 // Don't redirect to permalink after deletion.
70 return $this->redirect($response, '/'); 70 return $this->redirectFromReferer($request, $response, ['shaare/']);
71 } 71 }
72 72
73 /** 73 /**