Skip to content
Snippets Groups Projects
Commit 1010bde4 authored by fw-bot's avatar fw-bot
Browse files

[FIX] website_blog: add missing website=True in feed


Before this commit, if you archive a blog, you will have a 500 instead of 404.
Serve page to show the 404 use request.website, so we need to force controller
with website=True to bind website on the request.

Probably need to check all controllers in website_* module.

opw-2066725

closes odoo/odoo#38534

X-original-commit: 74341c4f
Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent 843c22fc
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ class WebsiteBlog(http.Controller):
return request.render("website_blog.blog_post_short", values)
@http.route(['''/blog/<model("blog.blog", "[('website_id', 'in', (False, current_website_id))]"):blog>/feed'''], type='http', auth="public")
@http.route(['''/blog/<model("blog.blog", "[('website_id', 'in', (False, current_website_id))]"):blog>/feed'''], type='http', auth="public", website=True)
def blog_feed(self, blog, limit='15', **kwargs):
v = {}
v['blog'] = blog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment