[FIX] website_forum: remove leftover of old url with /question/
Avoid redirect to forum/<name>/question/<post> that will rediret in all case to /forum/<name>/<post>. closes odoo/odoo#158148 Signed-off-by: Jérémy Kersten <jke@odoo.com>
This commit is contained in:
@@ -367,7 +367,7 @@ class WebsiteForum(WebsiteProfile):
|
||||
@http.route('/forum/<model("forum.forum"):forum>/question/<model("forum.post"):question>/close', type='http', auth="user", methods=['POST'], website=True)
|
||||
def question_close(self, forum, question, **post):
|
||||
question.close(reason_id=int(post.get('reason_id', False)))
|
||||
return request.redirect("/forum/%s/question/%s" % (slug(forum), slug(question)))
|
||||
return request.redirect("/forum/%s/%s" % (slug(forum), slug(question)))
|
||||
|
||||
@http.route('/forum/<model("forum.forum"):forum>/question/<model("forum.post"):question>/reopen', type='http', auth="user", methods=['POST'], website=True)
|
||||
def question_reopen(self, forum, question, **kwarg):
|
||||
|
||||
Reference in New Issue
Block a user