diff options
| author | fw-bot <otis@odoo.com> | 2019-10-11 11:07:25 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-11 18:04:04 +0000 |
| commit | e2d27c9e81d7c730e4ec6c2bdea47c2e9d2d67d0 (patch) | |
| tree | cf14872755d893db2ae00469c52a88de56b77318 /addons | |
| parent | fd51030c4348dc820d7dd61006ee9b2576655c0f (diff) | |
[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#38539
X-original-commit: 74341c4fcba701fe5ce7ee742880bbf138131a0d
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_blog/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py index 5d8279c22ba..de86c2be8a5 100644 --- a/addons/website_blog/controllers/main.py +++ b/addons/website_blog/controllers/main.py @@ -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 |
