diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-11-05 16:14:22 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-11-05 16:14:27 +0100 |
commit | 330ac859fb13a3a15875f185a611bfaa6c5f5587 (patch) | |
tree | 9cfb35eeddca847df74019d8f067255dd7cd3aee /application/front/controller/admin | |
parent | 38b55fbf3d4fdb515d0e82e5a3126d4671652b3e (diff) | |
download | Shaarli-330ac859fb13a3a15875f185a611bfaa6c5f5587.tar.gz Shaarli-330ac859fb13a3a15875f185a611bfaa6c5f5587.tar.zst Shaarli-330ac859fb13a3a15875f185a611bfaa6c5f5587.zip |
Fix: redirect to referrer after bookmark deletion
Except if the referer points to a permalink (which has been deleted).
Fixes #1622
Diffstat (limited to 'application/front/controller/admin')
-rw-r--r-- | application/front/controller/admin/ShaareManageController.php | 4 |
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 | /** |