Merge pull request #1559 from ArthurHoaro/fix/edit-redirect

Fix redirection to referer after editing a link
This commit is contained in:
ArthurHoaro 2020-09-22 14:15:13 +02:00 committed by GitHub
commit 5baafe5001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ class ManageShaareController extends ShaarliAdminController
return $this->redirectFromReferer(
$request,
$response,
['add-shaare', 'shaare'], ['addlink', 'post', 'edit_link'],
['/admin/add-shaare', '/admin/shaare'], ['addlink', 'post', 'edit_link'],
$bookmark->getShortUrl()
);
}