From e255f5104a3ee96327876b25cca004ea300a53af Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 28 Jun 2017 10:34:22 +0200 Subject: After the deletion of a bookmark, returns to the list of bookmarks. --- src/web/views/bookmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/web/views/bookmark.py b/src/web/views/bookmark.py index 81189105..966ca4b2 100644 --- a/src/web/views/bookmark.py +++ b/src/web/views/bookmark.py @@ -185,7 +185,7 @@ def delete(bookmark_id=None): bookmark = BookmarkController(current_user.id).delete(bookmark_id) flash(gettext("Bookmark %(bookmark_name)s successfully deleted.", bookmark_name=bookmark.title), 'success') - return redirect(redirect_url()) + return redirect(url_for('bookmarks.list_')) @bookmarks_bp.route('/delete', methods=['GET']) -- cgit