aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-02-03 09:04:50 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-02-03 09:04:50 +0100
commit8e38ce1b37adf31e30bb1648f427cc9805a9ecd7 (patch)
tree2a4c46907c6d960a13d26a11f287300d7edbcf75
parentImprovement of the Flask redirection for the view mark_as_read(). (diff)
downloadnewspipe-8e38ce1b37adf31e30bb1648f427cc9805a9ecd7.tar.gz
newspipe-8e38ce1b37adf31e30bb1648f427cc9805a9ecd7.tar.bz2
newspipe-8e38ce1b37adf31e30bb1648f427cc9805a9ecd7.zip
Redirec to referrer.
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index e44f0f28..80dd203c 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -118,7 +118,7 @@ def fetch(feed_id=None):
feed_getter = feedgetter.FeedGetter(g.user.email)
feed_getter.retrieve_feed(feed_id)
flash("New articles retrieved.", 'success')
- return redirect(url_for('home'))
+ return redirect(redirect_url())
@app.route('/about/', methods=['GET'])
@login_required
bgstack15