From 21079fb7b98c1ef571361a563cfef2b660e377e3 Mon Sep 17 00:00:00 2001 From: Garret Raziel Date: Jun 25 2014 13:06:05 +0000 Subject: add url_for() into redirect of default_boji_comments() Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D157 --- diff --git a/fake_fedorainfra/controllers/main.py b/fake_fedorainfra/controllers/main.py index 9be6e0e..146f354 100644 --- a/fake_fedorainfra/controllers/main.py +++ b/fake_fedorainfra/controllers/main.py @@ -107,7 +107,7 @@ def get_comments(start=0, num_comments=NUM_PAGE): @app.route('/boji/comments', methods=['GET']) def default_boji_comments(): - return redirect('/boji/comments/0') + return redirect(url_for('boji_comments', start_comment=0)) @app.route('/boji/comments/', methods=['GET']) def boji_comments(start_comment):