diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py index 320a92ac256..989565941dd 100644 --- a/addons/website_blog/controllers/main.py +++ b/addons/website_blog/controllers/main.py @@ -160,6 +160,7 @@ class WebsiteBlog(http.Controller): return request.website.render("website_blog.index", values) # TODO: Refactor (used in website_blog.js for archive links) + # => the archive links should be generated server side @website.route(['/blog/nav'], type='http', auth="public", multilang=True) def nav(self, **post): cr, uid, context = request.cr, request.uid, request.context diff --git a/addons/website_blog/static/src/js/website_blog.js b/addons/website_blog/static/src/js/website_blog.js index 5d9a83162dd..79ccd08f57f 100644 --- a/addons/website_blog/static/src/js/website_blog.js +++ b/addons/website_blog/static/src/js/website_blog.js @@ -8,7 +8,7 @@ $(document).ready(function () { e.preventDefault(); var $ul = $(this).next("ul"); if (!$ul.find('li').length) { - // TODO: Why POST? A GET would be more appropriate... + // TODO: Why POST? (to pass the domain) A GET would be more appropriate... // This should be done server side anyway... $.post('/blog/nav', {'domain': $(this).data("domain")}, function (result) { var blog_id = +window.location.pathname.split("/").pop();